Skip to content

Commit 82ad16c

Browse files
authored
Merge branch 'main' into early-access-tweaks
2 parents 41a4732 + a97698f commit 82ad16c

5 files changed

Lines changed: 15 additions & 7 deletions

File tree

content/developers/webhooks-and-events/webhook-events-and-payloads.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ Key | Type | Description
445445
#### Webhook payload object
446446
447447
{% data reusables.webhooks.installation_properties %}
448-
{% data reusables.webhooks.app_desc %}
448+
{% data reusables.webhooks.app_always_desc %}
449449
{% data reusables.webhooks.sender_desc %}
450450
451451
#### Webhook payload example
@@ -469,7 +469,7 @@ Key | Type | Description
469469
#### Webhook payload object
470470
471471
{% data reusables.webhooks.installation_repositories_properties %}
472-
{% data reusables.webhooks.app_desc %}
472+
{% data reusables.webhooks.app_always_desc %}
473473
{% data reusables.webhooks.sender_desc %}
474474
475475
#### Webhook payload example
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`installation` | `object` | The {% data variables.product.prodname_github_app %} installation.

tests/helpers/conditional-runs.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const runningActionsOnInternalRepo = process.env.GITHUB_ACTIONS === 'true' && process.env.GITHUB_REPOSITORY === 'github/docs-internal'
2+
3+
const testViaActionsOnly = runningActionsOnInternalRepo ? test : test.skip
4+
const describeViaActionsOnly = runningActionsOnInternalRepo ? describe : describe.skip
5+
6+
module.exports = {
7+
testViaActionsOnly,
8+
describeViaActionsOnly
9+
}

tests/rendering/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const lodash = require('lodash')
22
const enterpriseServerReleases = require('../../lib/enterprise-server-releases')
33
const { get, getDOM, head } = require('../helpers/supertest')
4+
const { describeViaActionsOnly } = require('../helpers/conditional-runs')
45
const path = require('path')
56
const nonEnterpriseDefaultVersion = require('../../lib/non-enterprise-default-version')
67
const { loadPages } = require('../../lib/pages')
@@ -356,7 +357,7 @@ describe('server', () => {
356357
})
357358
})
358359

359-
describe.skip('Early Access articles', () => {
360+
describeViaActionsOnly('Early Access articles', () => {
360361
let hiddenPageHrefs, hiddenPages
361362

362363
beforeAll(async (done) => {

tests/unit/early-access.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
const fs = require('fs').promises
22
const path = require('path')
3-
4-
const { GITHUB_ACTIONS, GITHUB_REPOSITORY } = process.env
5-
const runningActionsOnInternalRepo = GITHUB_ACTIONS === 'true' && GITHUB_REPOSITORY === 'github/docs-internal'
6-
const testViaActionsOnly = runningActionsOnInternalRepo ? test : test.skip
3+
const { testViaActionsOnly } = require('../helpers/conditional-runs')
74

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

0 commit comments

Comments
 (0)