Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/reviewers-docs-engineering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,22 @@ jobs:
# These are usually cross-platform `npm install` churn from contributors
# editing content. We comment with reset instructions instead of pulling in
# docs-engineering for review.
#
# Dependabot is exempt. Its security updates for transitive dependencies
# change only the lockfile, because the dependency is not in package.json.
# Those PRs are intentional, so the reset instructions are wrong and
# suppressing the review request leaves them with no reviewer at all.
- name: Detect lockfile-only churn
id: detect
env:
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
run: |
if [ "$PR_AUTHOR" = "dependabot[bot]" ]; then
echo "Author is Dependabot; skipping lockfile churn detection."
echo "lockfile_only=false" >> "$GITHUB_OUTPUT"
exit 0
fi
changed=$(gh pr diff "$PR" --name-only)
echo "Changed files:"
echo "$changed"
Expand Down
6 changes: 3 additions & 3 deletions src/ghes-releases/lib/deprecation-steps.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Enterprise Server {{ release-number }} deprecation steps
title: "[{{ deprecation-date }}] Enterprise Server {{ release-number }} deprecation steps"
labels:
- enterprise deprecation
- priority-1
- time sensitive
- engineering
- priority-2
- workflow-generated
---

Expand Down
19 changes: 11 additions & 8 deletions src/ghes-releases/scripts/create-enterprise-issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,14 @@ async function createDeprecationIssue() {
const { data, content } = matter(issueTemplate)
const { title, labels } = data
const renderedContent = content.replaceAll('{{ release-number }}', oldestSupported)
const body = `GHES ${oldestSupported} deprecation occurs on ${deprecationDate}.
const body = `GHES ${oldestSupported} deprecation occurs on ${deprecationDate}. Don't start before that date. Late is fine.

${renderedContent}`
await createIssue(
repo,
title.replaceAll('{{ release-number }}', oldestSupported),
title
.replaceAll('{{ release-number }}', oldestSupported)
.replaceAll('{{ deprecation-date }}', deprecationDate),
body,
labels,
oldestSupported,
Expand Down Expand Up @@ -378,13 +380,14 @@ async function isExistingIssue(
const issues = await octokit.request(`GET /search/issues?q=${query}`)

if (titleMatch) {
for (const issue of issues.data.items) {
if (issue.title.includes(titleMatch)) {
console.log(`Issue ${issue.html_url} already exists for this release.`)
return true
}
return false
const match = issues.data.items.find((issue: { title: string }) =>
issue.title.includes(titleMatch),
)
if (match) {
console.log(`Issue ${match.html_url} already exists for this release.`)
return true
}
return false
}

const issueExists = !!issues.data.items.length
Expand Down
8 changes: 4 additions & 4 deletions src/graphql/data/fpt/schema-repos.json
Original file line number Diff line number Diff line change
Expand Up @@ -683,14 +683,14 @@
"fields": [
{
"name": "alertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
},
{
"name": "securityAlertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
Expand Down Expand Up @@ -9990,14 +9990,14 @@
"inputFields": [
{
"name": "alertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
},
{
"name": "securityAlertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
Expand Down
8 changes: 4 additions & 4 deletions src/graphql/data/ghec/schema-repos.json
Original file line number Diff line number Diff line change
Expand Up @@ -683,14 +683,14 @@
"fields": [
{
"name": "alertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
},
{
"name": "securityAlertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
Expand Down Expand Up @@ -9990,14 +9990,14 @@
"inputFields": [
{
"name": "alertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
},
{
"name": "securityAlertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
Expand Down
8 changes: 4 additions & 4 deletions src/graphql/data/ghes-3.17/schema-repos.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,14 @@
"fields": [
{
"name": "alertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
},
{
"name": "securityAlertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
Expand Down Expand Up @@ -8408,14 +8408,14 @@
"inputFields": [
{
"name": "alertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
},
{
"name": "securityAlertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
Expand Down
8 changes: 4 additions & 4 deletions src/graphql/data/ghes-3.18/schema-repos.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,14 @@
"fields": [
{
"name": "alertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
},
{
"name": "securityAlertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
Expand Down Expand Up @@ -8823,14 +8823,14 @@
"inputFields": [
{
"name": "alertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
},
{
"name": "securityAlertsThreshold",
"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>",
"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>",
"type": "String!",
"id": "string",
"href": "/graphql/reference/other#scalar-string"
Expand Down
Loading
Loading