Skip to content

Commit fdca776

Browse files
authored
Add workflow-generated label to workflow-generated issues and PRs (#56163)
1 parent ad6359b commit fdca776

19 files changed

+19
-11
lines changed

.github/workflows/check-broken-links-github-github.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
# need to use a token from a user with access to github/github for this step
2121
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
2222
REPORT_AUTHOR: docs-bot
23-
REPORT_LABEL: github github broken link report
23+
REPORT_LABEL: github github broken link report,workflow-generated
2424
REPORT_REPOSITORY: github/docs-content
2525
steps:
2626
- name: Checkout

.github/workflows/copy-api-issue-to-internal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
4646
- name: Create an issue in the docs-content repo
4747
run: |
48-
new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/docs-content)"
48+
new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/docs-content --label "workflow-generated")"
4949
echo 'NEW_ISSUE='$new_issue_url >> $GITHUB_ENV
5050
env:
5151
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_BASE}}

.github/workflows/delete-orphan-translation-files.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ jobs:
130130
--body '👋 humans. This PR was generated from docs-internal/.github/workflows/delete-orphan-translation-files.yml.
131131
' \
132132
--repo "${{ matrix.language_repo }}" \
133+
--label "workflow-generated" \
133134
--head=$branch_name
134135
echo "Merge created PR..."
135136
retry_command gh pr merge --merge --auto --delete-branch "$branch_name"

.github/workflows/generate-code-scanning-query-lists.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
gh pr create \
153153
--title "Update CodeQL query tables" \
154154
--repo github/docs-internal \
155-
--label "codeql-query-tables,skip FR board,ready-for-doc-review" \
155+
--label "codeql-query-tables,skip FR board,ready-for-doc-review,workflow-generated" \
156156
--body '👋 humans. This PR updates the **CodeQL query table reusables** with the latest changes in preparation for the next **CodeQL CLI** release.
157157
158158
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 }})

.github/workflows/moda-allowed-ips.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
gh pr create \
5050
--title "Update list of allowed IPs" \
5151
--body 'This PR updates the list of allowed IPs in Moda. It is automatically generated.' \
52+
--label "workflow-generated" \
5253
--head=$branchname
5354
echo "Pull request created"
5455

.github/workflows/orphaned-features-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
--title "Delete orphaned features ($date)" \
9898
--body "$body" \
9999
--repo github/docs-internal \
100-
--label docs-content-fr
100+
--label docs-content-fr,workflow-generated
101101
102102
- uses: ./.github/actions/slack-alert
103103
if: ${{ failure() && github.event_name == 'schedule' }}

.github/workflows/orphaned-files-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
--title "Delete orphaned files ($date)" \
106106
--body "$body" \
107107
--repo github/docs-internal \
108-
--label docs-content-fr
108+
--label docs-content-fr,workflow-generated
109109
110110
- uses: ./.github/actions/slack-alert
111111
if: ${{ failure() && github.event_name == 'schedule' }}

.github/workflows/sme-review-tracking-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ jobs:
5454
- Reviewer stating they'll need to get back to us at a later time
5555
- Review provided was unclear or missing key information, and a follow-up is necessary
5656
`,
57-
labels: ['on track','open source', 'sme-review'],
57+
labels: ['on track','open source', 'sme-review', 'workflow-generated'],
5858
});

.github/workflows/sync-audit-logs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
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).
9292
If CI does not pass or other problems arise, contact #docs-engineering on slack.' \
9393
--repo github/docs-internal \
94-
--label audit-log-pipeline \
94+
--label audit-log-pipeline,workflow-generated \
9595
--head=$branchname
9696
echo "Created pull request"
9797

.github/workflows/sync-codeql-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
109109
If CI does not pass or other problems arise, contact #docs-engineering on slack.' \
110110
--repo github/docs-internal \
111-
--label "codeql-cli-pipeline,skip FR board,ready-for-doc-review"
111+
--label "codeql-cli-pipeline,skip FR board,ready-for-doc-review,workflow-generated"
112112
113113
- uses: ./.github/actions/slack-alert
114114
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}

0 commit comments

Comments
 (0)