Skip to content

Commit 739b2c3

Browse files
authored
repo sync
2 parents 2c3ebde + 1d2acd0 commit 739b2c3

4 files changed

Lines changed: 12 additions & 16 deletions

File tree

content/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ For more information, see "[Restricting publication of {% data variables.product
428428
| Action | Description
429429
|------------------|-------------------
430430
| `close` | Triggered when someone closes a security advisory. For more information, see "[About {% data variables.product.prodname_dotcom %} Security Advisories](/github/managing-security-vulnerabilities/about-github-security-advisories)."
431-
| `cve_request` | Triggered when someone requests a CVE (Common Vulnerabilities and Exposures) number from {% data.variables.product.prodname_dotcom %} for a draft security advisory.
432-
| `github_broadcast` | Triggered when {% data.variables.product.prodname_dotcom %} makes a security advisory public in the {% data variables.product.prodname_advisory_database %}.
433-
| `github_withdraw` | Triggered when {% data.variables.product.prodname_dotcom %} withdraws a security advisory that was published in error.
431+
| `cve_request` | Triggered when someone requests a CVE (Common Vulnerabilities and Exposures) number from {% data variables.product.prodname_dotcom %} for a draft security advisory.
432+
| `github_broadcast` | Triggered when {% data variables.product.prodname_dotcom %} makes a security advisory public in the {% data variables.product.prodname_advisory_database %}.
433+
| `github_withdraw` | Triggered when {% data variables.product.prodname_dotcom %} withdraws a security advisory that was published in error.
434434
| `open` | Triggered when someone opens a draft security advisory.
435435
| `publish` | Triggered when someone publishes a security advisory.
436436
| `reopen` | Triggered when someone reopens as draft security advisory.

content/github/setting-up-and-managing-your-github-user-account/integrating-jira-with-your-personal-projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ versions:
1111
{% data reusables.user_settings.access_settings %}
1212
{% data reusables.user_settings.developer_settings %}
1313
3. In the left sidebar, click **{% data variables.product.prodname_oauth_app %}s**.
14-
![{ site.data.variables.product.prodname_oauth_app }}s tab in the left sidebar](/assets/images/help/settings/developer-settings-oauth-apps.png)
14+
![{% data variables.product.prodname_oauth_app %}s tab in the left sidebar](/assets/images/help/settings/developer-settings-oauth-apps.png)
1515
3. Click **Register a new application**.
1616
4. Under **Application name**, type "Jira".
1717
5. Under **Homepage URL**, type the full URL to your Jira instance.

content/insights/installing-and-configuring-github-insights/enabling-a-link-between-github-insights-and-github-enterprise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Enabling a link between GitHub Insights and GitHub Enterprise
3-
intro: 'You can enable a link that will allow users to navigate from {% data variables.product.prodname_ghe_server %} to {{ site.data.variables.product.prodname_insights }}.'
3+
intro: 'You can enable a link that will allow users to navigate from {% data variables.product.prodname_ghe_server %} to {% data variables.product.prodname_insights %}.'
44
product: '{% data reusables.gated-features.github-insights %}'
55
permissions: 'Site administrators for {% data variables.product.prodname_ghe_server %} can enable a link between {% data variables.product.prodname_ghe_server %} and {% data variables.product.prodname_insights %}.'
66
redirect_from:

tests/content/lint-files.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const path = require('path')
22
const slash = require('slash')
33
const fs = require('fs')
44
const walk = require('walk-sync')
5-
const matter = require('@github-docs/frontmatter')
65
const { zip } = require('lodash')
76
const yaml = require('js-yaml')
87
const languages = require('../../lib/languages')
@@ -81,19 +80,19 @@ const versionLinkRegEx = /(?=^|[^\]]\s*)\[[^\]]+\](?::\n?[ \t]+|\s*\()(?:(?:http
8180
const domainLinkRegex = /(?=^|[^\]]\s*)\[[^\]]+\](?::\n?[ \t]+|\s*\()(?:https?:)?\/\/(?:help|docs|developer)\.github\.com(?!\/changes\/)[^)\s]*(?:\)|\s+|$)/gm
8281

8382
// {{ site.data.example.pizza }}
84-
const oldVariableRegex = /{{\s?site\.data\..*}}/g
83+
const oldVariableRegex = /{{\s*?site\.data\..*?}}/g
8584

8685
// - {{ octicon-plus }}
8786
// - {{ octicon-plus An example label }}
8887
//
89-
const oldOcticonRegex = /{{\s?octicon-([a-z-]+)(\s[\w\s\d-]+)?\s?}}/g
88+
const oldOcticonRegex = /{{\s*?octicon-([a-z-]+)(\s[\w\s\d-]+)?\s*?}}/g
9089

9190
// - {{#note}}
9291
// - {{/note}}
9392
// - {{ #warning }}
9493
// - {{ /pizza }}
9594
//
96-
const oldExtendedMarkdownRegex = /{{\s?[#/][a-z-]+\s?}}/g
95+
const oldExtendedMarkdownRegex = /{{\s*?[#/][a-z-]+\s*?}}/g
9796

9897
const relativeArticleLinkErrorText = 'Found unexpected relative article links:'
9998
const languageLinkErrorText = 'Found article links with hard-coded language codes:'
@@ -125,10 +124,7 @@ describe('lint-files', () => {
125124
let content
126125

127126
beforeAll(async () => {
128-
const fileContents = await fs.promises.readFile(markdownAbsPath, 'utf8')
129-
const { content: bodyContent } = matter(fileContents)
130-
131-
content = bodyContent
127+
content = await fs.promises.readFile(markdownAbsPath, 'utf8')
132128
})
133129

134130
test('relative URLs must start with "/"', async () => {
@@ -214,7 +210,7 @@ describe('lint-files', () => {
214210
const matches = (content.match(oldVariableRegex) || [])
215211
const matchesWithExample = matches.map(match => {
216212
const example = match
217-
.replace(/{{\s?site\.data\.([a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]+)+)\s*}}/g, '{% data $1 %}')
213+
.replace(/{{\s*?site\.data\.([a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]+)+)\s*?}}/g, '{% data $1 %}')
218214
return `${match} => ${example}`
219215
})
220216
const errorMessage = formatLinkError(oldVariableErrorText, matchesWithExample)
@@ -229,7 +225,7 @@ describe('lint-files', () => {
229225

230226
test('does not use old extended markdown syntax', async () => {
231227
Object.keys(tags).forEach(tag => {
232-
const reg = new RegExp(`{{\\s?[#|/]${tag}`, 'g')
228+
const reg = new RegExp(`{{\\s*?[#|/]${tag}`, 'g')
233229
if (reg.test(content)) {
234230
const matches = (content.match(oldExtendedMarkdownRegex)) || []
235231
const tagMessage = oldExtendedMarkdownErrorText
@@ -334,7 +330,7 @@ describe('lint-files', () => {
334330
if (valMatches.length > 0) {
335331
matches.push(...valMatches.map((match) => {
336332
const example = match
337-
.replace(/{{\s?site\.data\.([a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]+)+)\s*}}/g, '{% data $1 %}')
333+
.replace(/{{\s*?site\.data\.([a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]+)+)\s*?}}/g, '{% data $1 %}')
338334
return `Key "${key}": ${match} => ${example}`
339335
}))
340336
}

0 commit comments

Comments
 (0)