Skip to content

Commit

Permalink
Merge branch 'main' into early-access-tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahs authored Dec 10, 2020
2 parents 41a4732 + a97698f commit 82ad16c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ Key | Type | Description
#### Webhook payload object
{% data reusables.webhooks.installation_properties %}
{% data reusables.webhooks.app_desc %}
{% data reusables.webhooks.app_always_desc %}
{% data reusables.webhooks.sender_desc %}
#### Webhook payload example
Expand All @@ -469,7 +469,7 @@ Key | Type | Description
#### Webhook payload object
{% data reusables.webhooks.installation_repositories_properties %}
{% data reusables.webhooks.app_desc %}
{% data reusables.webhooks.app_always_desc %}
{% data reusables.webhooks.sender_desc %}
#### Webhook payload example
Expand Down
1 change: 1 addition & 0 deletions data/reusables/webhooks/app_always_desc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`installation` | `object` | The {% data variables.product.prodname_github_app %} installation.
9 changes: 9 additions & 0 deletions tests/helpers/conditional-runs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const runningActionsOnInternalRepo = process.env.GITHUB_ACTIONS === 'true' && process.env.GITHUB_REPOSITORY === 'github/docs-internal'

const testViaActionsOnly = runningActionsOnInternalRepo ? test : test.skip
const describeViaActionsOnly = runningActionsOnInternalRepo ? describe : describe.skip

module.exports = {
testViaActionsOnly,
describeViaActionsOnly
}
3 changes: 2 additions & 1 deletion tests/rendering/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const lodash = require('lodash')
const enterpriseServerReleases = require('../../lib/enterprise-server-releases')
const { get, getDOM, head } = require('../helpers/supertest')
const { describeViaActionsOnly } = require('../helpers/conditional-runs')
const path = require('path')
const nonEnterpriseDefaultVersion = require('../../lib/non-enterprise-default-version')
const { loadPages } = require('../../lib/pages')
Expand Down Expand Up @@ -356,7 +357,7 @@ describe('server', () => {
})
})

describe.skip('Early Access articles', () => {
describeViaActionsOnly('Early Access articles', () => {
let hiddenPageHrefs, hiddenPages

beforeAll(async (done) => {
Expand Down
5 changes: 1 addition & 4 deletions tests/unit/early-access.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const fs = require('fs').promises
const path = require('path')

const { GITHUB_ACTIONS, GITHUB_REPOSITORY } = process.env
const runningActionsOnInternalRepo = GITHUB_ACTIONS === 'true' && GITHUB_REPOSITORY === 'github/docs-internal'
const testViaActionsOnly = runningActionsOnInternalRepo ? test : test.skip
const { testViaActionsOnly } = require('../helpers/conditional-runs')

describe('cloning early-access', () => {
testViaActionsOnly('the content directory exists', async () => {
Expand Down

0 comments on commit 82ad16c

Please sign in to comment.