From fdca776e0b75b5d6e5fa0a2a84571ef63f8971ec Mon Sep 17 00:00:00 2001 From: Kevin Heis Date: Mon, 23 Jun 2025 13:51:18 -0700 Subject: [PATCH] Add workflow-generated label to workflow-generated issues and PRs (#56163) --- .github/workflows/check-broken-links-github-github.yml | 2 +- .github/workflows/copy-api-issue-to-internal.yml | 2 +- .github/workflows/delete-orphan-translation-files.yml | 1 + .github/workflows/generate-code-scanning-query-lists.yml | 2 +- .github/workflows/moda-allowed-ips.yml | 1 + .github/workflows/orphaned-features-check.yml | 2 +- .github/workflows/orphaned-files-check.yml | 2 +- .github/workflows/sme-review-tracking-issue.yml | 2 +- .github/workflows/sync-audit-logs.yml | 2 +- .github/workflows/sync-codeql-cli.yml | 2 +- .github/workflows/sync-openapi.yml | 2 +- .github/workflows/sync-secret-scanning.yml | 2 +- src/ghes-releases/lib/deprecation-steps.md | 1 + src/ghes-releases/lib/release-templates/release-steps-0.md | 2 +- src/ghes-releases/lib/release-templates/release-steps-1.md | 1 + src/ghes-releases/lib/release-templates/release-steps-2.md | 1 + src/ghes-releases/lib/release-templates/release-steps-3.md | 1 + src/ghes-releases/lib/release-templates/release-steps-4.md | 1 + src/ghes-releases/lib/release-templates/release-steps-5.md | 1 + 19 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/check-broken-links-github-github.yml b/.github/workflows/check-broken-links-github-github.yml index a8e312d4f4..294931b168 100644 --- a/.github/workflows/check-broken-links-github-github.yml +++ b/.github/workflows/check-broken-links-github-github.yml @@ -20,7 +20,7 @@ jobs: # need to use a token from a user with access to github/github for this step GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }} REPORT_AUTHOR: docs-bot - REPORT_LABEL: github github broken link report + REPORT_LABEL: github github broken link report,workflow-generated REPORT_REPOSITORY: github/docs-content steps: - name: Checkout diff --git a/.github/workflows/copy-api-issue-to-internal.yml b/.github/workflows/copy-api-issue-to-internal.yml index 37d13731ca..aa3297591b 100644 --- a/.github/workflows/copy-api-issue-to-internal.yml +++ b/.github/workflows/copy-api-issue-to-internal.yml @@ -45,7 +45,7 @@ jobs: - name: Create an issue in the docs-content repo run: | - new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/docs-content)" + new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/docs-content --label "workflow-generated")" echo 'NEW_ISSUE='$new_issue_url >> $GITHUB_ENV env: GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_BASE}} diff --git a/.github/workflows/delete-orphan-translation-files.yml b/.github/workflows/delete-orphan-translation-files.yml index d4fca85a0c..2f6116f606 100644 --- a/.github/workflows/delete-orphan-translation-files.yml +++ b/.github/workflows/delete-orphan-translation-files.yml @@ -130,6 +130,7 @@ jobs: --body '👋 humans. This PR was generated from docs-internal/.github/workflows/delete-orphan-translation-files.yml. ' \ --repo "${{ matrix.language_repo }}" \ + --label "workflow-generated" \ --head=$branch_name echo "Merge created PR..." retry_command gh pr merge --merge --auto --delete-branch "$branch_name" diff --git a/.github/workflows/generate-code-scanning-query-lists.yml b/.github/workflows/generate-code-scanning-query-lists.yml index d24c20d70a..7ede7c2d1d 100644 --- a/.github/workflows/generate-code-scanning-query-lists.yml +++ b/.github/workflows/generate-code-scanning-query-lists.yml @@ -152,7 +152,7 @@ jobs: gh pr create \ --title "Update CodeQL query tables" \ --repo github/docs-internal \ - --label "codeql-query-tables,skip FR board,ready-for-doc-review" \ + --label "codeql-query-tables,skip FR board,ready-for-doc-review,workflow-generated" \ --body '👋 humans. This PR updates the **CodeQL query table reusables** with the latest changes in preparation for the next **CodeQL CLI** release. No action is required from the first responder for the Docs content team. This PR will be reviewed and merged by the Code scanning and GHAS focus team as part of the next release of CodeQL CLI. (Synced from codeql@${{ steps.codeql.outputs.OPENAPI_COMMIT_SHA }}) diff --git a/.github/workflows/moda-allowed-ips.yml b/.github/workflows/moda-allowed-ips.yml index 942bc4465b..54a02a71e2 100644 --- a/.github/workflows/moda-allowed-ips.yml +++ b/.github/workflows/moda-allowed-ips.yml @@ -49,6 +49,7 @@ jobs: gh pr create \ --title "Update list of allowed IPs" \ --body 'This PR updates the list of allowed IPs in Moda. It is automatically generated.' \ + --label "workflow-generated" \ --head=$branchname echo "Pull request created" diff --git a/.github/workflows/orphaned-features-check.yml b/.github/workflows/orphaned-features-check.yml index 2ab443c1ce..1e4f23860a 100644 --- a/.github/workflows/orphaned-features-check.yml +++ b/.github/workflows/orphaned-features-check.yml @@ -97,7 +97,7 @@ jobs: --title "Delete orphaned features ($date)" \ --body "$body" \ --repo github/docs-internal \ - --label docs-content-fr + --label docs-content-fr,workflow-generated - uses: ./.github/actions/slack-alert if: ${{ failure() && github.event_name == 'schedule' }} diff --git a/.github/workflows/orphaned-files-check.yml b/.github/workflows/orphaned-files-check.yml index a893626e82..dcf8dc3542 100644 --- a/.github/workflows/orphaned-files-check.yml +++ b/.github/workflows/orphaned-files-check.yml @@ -105,7 +105,7 @@ jobs: --title "Delete orphaned files ($date)" \ --body "$body" \ --repo github/docs-internal \ - --label docs-content-fr + --label docs-content-fr,workflow-generated - uses: ./.github/actions/slack-alert if: ${{ failure() && github.event_name == 'schedule' }} diff --git a/.github/workflows/sme-review-tracking-issue.yml b/.github/workflows/sme-review-tracking-issue.yml index cb0ab2338d..e6d7b2eadd 100644 --- a/.github/workflows/sme-review-tracking-issue.yml +++ b/.github/workflows/sme-review-tracking-issue.yml @@ -54,5 +54,5 @@ jobs: - Reviewer stating they'll need to get back to us at a later time - Review provided was unclear or missing key information, and a follow-up is necessary `, - labels: ['on track','open source', 'sme-review'], + labels: ['on track','open source', 'sme-review', 'workflow-generated'], }); diff --git a/.github/workflows/sync-audit-logs.yml b/.github/workflows/sync-audit-logs.yml index 70acc0312e..631a7a3a51 100644 --- a/.github/workflows/sync-audit-logs.yml +++ b/.github/workflows/sync-audit-logs.yml @@ -91,7 +91,7 @@ jobs: Make sure the PR builds successfully and there are no gross errors (for example, a file is deleted). You do not need to validate the contents (that is the responsibility of product teams). If CI does not pass or other problems arise, contact #docs-engineering on slack.' \ --repo github/docs-internal \ - --label audit-log-pipeline \ + --label audit-log-pipeline,workflow-generated \ --head=$branchname echo "Created pull request" diff --git a/.github/workflows/sync-codeql-cli.yml b/.github/workflows/sync-codeql-cli.yml index 8cfd73ce3d..89ede9f374 100644 --- a/.github/workflows/sync-codeql-cli.yml +++ b/.github/workflows/sync-codeql-cli.yml @@ -108,7 +108,7 @@ jobs: If CI does not pass or other problems arise, contact #docs-engineering on slack.' \ --repo github/docs-internal \ - --label "codeql-cli-pipeline,skip FR board,ready-for-doc-review" + --label "codeql-cli-pipeline,skip FR board,ready-for-doc-review,workflow-generated" - uses: ./.github/actions/slack-alert if: ${{ failure() && github.event_name != 'workflow_dispatch' }} diff --git a/.github/workflows/sync-openapi.yml b/.github/workflows/sync-openapi.yml index 74abf1f367..19ea694bfc 100644 --- a/.github/workflows/sync-openapi.yml +++ b/.github/workflows/sync-openapi.yml @@ -114,7 +114,7 @@ jobs: If CI does not pass or other problems arise, contact #docs-engineering on slack.' \ --repo github/docs-internal \ - --label github-openapi-bot \ + --label github-openapi-bot,workflow-generated \ --head=$branchname \ - uses: ./.github/actions/slack-alert diff --git a/.github/workflows/sync-secret-scanning.yml b/.github/workflows/sync-secret-scanning.yml index 60268faa5f..f1f7c3aa70 100644 --- a/.github/workflows/sync-secret-scanning.yml +++ b/.github/workflows/sync-secret-scanning.yml @@ -76,7 +76,7 @@ jobs: If CI does not pass or other problems arise, contact #docs-engineering on Slack.' \ --repo github/docs-internal \ - --label secret-scanning-pipeline,'skip FR board',ready-for-doc-review \ + --label secret-scanning-pipeline,'skip FR board',ready-for-doc-review,workflow-generated \ --head=$branchname - uses: ./.github/actions/slack-alert diff --git a/src/ghes-releases/lib/deprecation-steps.md b/src/ghes-releases/lib/deprecation-steps.md index 488d112341..8c3c67d8d8 100644 --- a/src/ghes-releases/lib/deprecation-steps.md +++ b/src/ghes-releases/lib/deprecation-steps.md @@ -4,6 +4,7 @@ labels: - enterprise deprecation - priority-1 - time sensitive + - workflow-generated --- # Deprecation steps for GHES releases diff --git a/src/ghes-releases/lib/release-templates/release-steps-0.md b/src/ghes-releases/lib/release-templates/release-steps-0.md index edce01ffb7..82032ea014 100644 --- a/src/ghes-releases/lib/release-templates/release-steps-0.md +++ b/src/ghes-releases/lib/release-templates/release-steps-0.md @@ -8,7 +8,7 @@ labels: - skip FR board - GHES {{ release-number }} - ghes-release-automation - - rhythm of docs operations + - workflow-generated --- This issue tracks Docs work for the GA release of GHES {{ release-number }}. diff --git a/src/ghes-releases/lib/release-templates/release-steps-1.md b/src/ghes-releases/lib/release-templates/release-steps-1.md index dbd120c555..d287720bf8 100644 --- a/src/ghes-releases/lib/release-templates/release-steps-1.md +++ b/src/ghes-releases/lib/release-templates/release-steps-1.md @@ -7,6 +7,7 @@ labels: - skip FR board - rhythm of docs operations - GHES {{ release-number }} + - workflow-generated --- ## Instructions for triage diff --git a/src/ghes-releases/lib/release-templates/release-steps-2.md b/src/ghes-releases/lib/release-templates/release-steps-2.md index 93f61b3e45..abd788f35b 100644 --- a/src/ghes-releases/lib/release-templates/release-steps-2.md +++ b/src/ghes-releases/lib/release-templates/release-steps-2.md @@ -7,6 +7,7 @@ labels: - skip FR board - GHES {{ release-number }} - rhythm of docs operations + - workflow-generated --- ## Instructions for triage diff --git a/src/ghes-releases/lib/release-templates/release-steps-3.md b/src/ghes-releases/lib/release-templates/release-steps-3.md index c9792d4b07..030b0d2c60 100644 --- a/src/ghes-releases/lib/release-templates/release-steps-3.md +++ b/src/ghes-releases/lib/release-templates/release-steps-3.md @@ -5,6 +5,7 @@ labels: - new-release - priority-0 - GHES {{ release-number }} + - workflow-generated --- Docs Content will publish docs for the GHES {{ release-number }} RC soon. Please draft a release note for the latest supported version of the CodeQL CLI, and update the docs to reflect the latest supported version. diff --git a/src/ghes-releases/lib/release-templates/release-steps-4.md b/src/ghes-releases/lib/release-templates/release-steps-4.md index 0b097800e7..5787979098 100644 --- a/src/ghes-releases/lib/release-templates/release-steps-4.md +++ b/src/ghes-releases/lib/release-templates/release-steps-4.md @@ -4,6 +4,7 @@ labels: - Enterprise - priority-0 - skip FR board + - workflow-generated --- Docs Content will publish docs for the GHES {{ release-number }} RC soon. Please update the docs to reflect the minimum required version of the Actions Runner application for the new release. diff --git a/src/ghes-releases/lib/release-templates/release-steps-5.md b/src/ghes-releases/lib/release-templates/release-steps-5.md index 5ddfa696f2..6b491e575a 100644 --- a/src/ghes-releases/lib/release-templates/release-steps-5.md +++ b/src/ghes-releases/lib/release-templates/release-steps-5.md @@ -7,6 +7,7 @@ labels: - priority-0 - skip FR board - rhythm of docs operations + - workflow-generated --- ## Instructions for triage