Skip to content

Commit fca2765

Browse files
authored
Merge pull request #45837 from github/repo-sync
Repo sync
2 parents f3619f5 + 3e89ef7 commit fca2765

15 files changed

Lines changed: 159 additions & 52 deletions

File tree

.github/workflows/reviewers-docs-engineering.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,22 @@ jobs:
5454
# These are usually cross-platform `npm install` churn from contributors
5555
# editing content. We comment with reset instructions instead of pulling in
5656
# docs-engineering for review.
57+
#
58+
# Dependabot is exempt. Its security updates for transitive dependencies
59+
# change only the lockfile, because the dependency is not in package.json.
60+
# Those PRs are intentional, so the reset instructions are wrong and
61+
# suppressing the review request leaves them with no reviewer at all.
5762
- name: Detect lockfile-only churn
5863
id: detect
5964
env:
6065
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
66+
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
6167
run: |
68+
if [ "$PR_AUTHOR" = "dependabot[bot]" ]; then
69+
echo "Author is Dependabot; skipping lockfile churn detection."
70+
echo "lockfile_only=false" >> "$GITHUB_OUTPUT"
71+
exit 0
72+
fi
6273
changed=$(gh pr diff "$PR" --name-only)
6374
echo "Changed files:"
6475
echo "$changed"

src/ghes-releases/lib/deprecation-steps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: Enterprise Server {{ release-number }} deprecation steps
2+
title: "[{{ deprecation-date }}] Enterprise Server {{ release-number }} deprecation steps"
33
labels:
44
- enterprise deprecation
5-
- priority-1
6-
- time sensitive
5+
- engineering
6+
- priority-2
77
- workflow-generated
88
---
99

src/ghes-releases/scripts/create-enterprise-issue.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,14 @@ async function createDeprecationIssue() {
104104
const { data, content } = matter(issueTemplate)
105105
const { title, labels } = data
106106
const renderedContent = content.replaceAll('{{ release-number }}', oldestSupported)
107-
const body = `GHES ${oldestSupported} deprecation occurs on ${deprecationDate}.
107+
const body = `GHES ${oldestSupported} deprecation occurs on ${deprecationDate}. Don't start before that date. Late is fine.
108108
109109
${renderedContent}`
110110
await createIssue(
111111
repo,
112-
title.replaceAll('{{ release-number }}', oldestSupported),
112+
title
113+
.replaceAll('{{ release-number }}', oldestSupported)
114+
.replaceAll('{{ deprecation-date }}', deprecationDate),
113115
body,
114116
labels,
115117
oldestSupported,
@@ -378,13 +380,14 @@ async function isExistingIssue(
378380
const issues = await octokit.request(`GET /search/issues?q=${query}`)
379381

380382
if (titleMatch) {
381-
for (const issue of issues.data.items) {
382-
if (issue.title.includes(titleMatch)) {
383-
console.log(`Issue ${issue.html_url} already exists for this release.`)
384-
return true
385-
}
386-
return false
383+
const match = issues.data.items.find((issue: { title: string }) =>
384+
issue.title.includes(titleMatch),
385+
)
386+
if (match) {
387+
console.log(`Issue ${match.html_url} already exists for this release.`)
388+
return true
387389
}
390+
return false
388391
}
389392

390393
const issueExists = !!issues.data.items.length

src/graphql/data/fpt/schema-repos.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,14 +683,14 @@
683683
"fields": [
684684
{
685685
"name": "alertsThreshold",
686-
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
686+
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"/en/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
687687
"type": "String!",
688688
"id": "string",
689689
"href": "/graphql/reference/other#scalar-string"
690690
},
691691
{
692692
"name": "securityAlertsThreshold",
693-
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
693+
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"/en/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
694694
"type": "String!",
695695
"id": "string",
696696
"href": "/graphql/reference/other#scalar-string"
@@ -9990,14 +9990,14 @@
99909990
"inputFields": [
99919991
{
99929992
"name": "alertsThreshold",
9993-
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
9993+
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"/en/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
99949994
"type": "String!",
99959995
"id": "string",
99969996
"href": "/graphql/reference/other#scalar-string"
99979997
},
99989998
{
99999999
"name": "securityAlertsThreshold",
10000-
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
10000+
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"/en/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
1000110001
"type": "String!",
1000210002
"id": "string",
1000310003
"href": "/graphql/reference/other#scalar-string"

src/graphql/data/ghec/schema-repos.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,14 +683,14 @@
683683
"fields": [
684684
{
685685
"name": "alertsThreshold",
686-
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
686+
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"/en/enterprise-cloud@latest/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
687687
"type": "String!",
688688
"id": "string",
689689
"href": "/graphql/reference/other#scalar-string"
690690
},
691691
{
692692
"name": "securityAlertsThreshold",
693-
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
693+
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"/en/enterprise-cloud@latest/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
694694
"type": "String!",
695695
"id": "string",
696696
"href": "/graphql/reference/other#scalar-string"
@@ -9990,14 +9990,14 @@
99909990
"inputFields": [
99919991
{
99929992
"name": "alertsThreshold",
9993-
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
9993+
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"/en/enterprise-cloud@latest/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
99949994
"type": "String!",
99959995
"id": "string",
99969996
"href": "/graphql/reference/other#scalar-string"
99979997
},
99989998
{
99999999
"name": "securityAlertsThreshold",
10000-
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
10000+
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"/en/enterprise-cloud@latest/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
1000110001
"type": "String!",
1000210002
"id": "string",
1000310003
"href": "/graphql/reference/other#scalar-string"

src/graphql/data/ghes-3.17/schema-repos.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,14 @@
411411
"fields": [
412412
{
413413
"name": "alertsThreshold",
414-
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
414+
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"/en/enterprise-server@3.17/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
415415
"type": "String!",
416416
"id": "string",
417417
"href": "/graphql/reference/other#scalar-string"
418418
},
419419
{
420420
"name": "securityAlertsThreshold",
421-
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
421+
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"/en/enterprise-server@3.17/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
422422
"type": "String!",
423423
"id": "string",
424424
"href": "/graphql/reference/other#scalar-string"
@@ -8408,14 +8408,14 @@
84088408
"inputFields": [
84098409
{
84108410
"name": "alertsThreshold",
8411-
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
8411+
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"/en/enterprise-server@3.17/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
84128412
"type": "String!",
84138413
"id": "string",
84148414
"href": "/graphql/reference/other#scalar-string"
84158415
},
84168416
{
84178417
"name": "securityAlertsThreshold",
8418-
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
8418+
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"/en/enterprise-server@3.17/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
84198419
"type": "String!",
84208420
"id": "string",
84218421
"href": "/graphql/reference/other#scalar-string"

src/graphql/data/ghes-3.18/schema-repos.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,14 @@
411411
"fields": [
412412
{
413413
"name": "alertsThreshold",
414-
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
414+
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"/en/enterprise-server@3.18/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
415415
"type": "String!",
416416
"id": "string",
417417
"href": "/graphql/reference/other#scalar-string"
418418
},
419419
{
420420
"name": "securityAlertsThreshold",
421-
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
421+
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"/en/enterprise-server@3.18/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
422422
"type": "String!",
423423
"id": "string",
424424
"href": "/graphql/reference/other#scalar-string"
@@ -8823,14 +8823,14 @@
88238823
"inputFields": [
88248824
{
88258825
"name": "alertsThreshold",
8826-
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
8826+
"description": "<p>The severity level at which code scanning results that raise alerts block a\nreference update. For more information on alert severity levels, see \"<a href=\"/en/enterprise-server@3.18/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
88278827
"type": "String!",
88288828
"id": "string",
88298829
"href": "/graphql/reference/other#scalar-string"
88308830
},
88318831
{
88328832
"name": "securityAlertsThreshold",
8833-
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"$%7BexternalDocsUrl%7D/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
8833+
"description": "<p>The severity level at which code scanning results that raise security alerts\nblock a reference update. For more information on security severity levels,\nsee \"<a href=\"/en/enterprise-server@3.18/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels\">About code scanning alerts</a>.\".</p>",
88348834
"type": "String!",
88358835
"id": "string",
88368836
"href": "/graphql/reference/other#scalar-string"

0 commit comments

Comments
 (0)