Skip to content

Commit 121d024

Browse files
heiskrdocs-botCopilot
authored
Link auto-generated issues/PRs to the workflow run that created them (#61736)
Co-authored-by: docs-bot <77750099+docs-bot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0aaf535 commit 121d024

9 files changed

Lines changed: 21 additions & 6 deletions

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ 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 --label "workflow-generated")"
48+
new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY
49+
50+
Copied to this repo by the [$GITHUB_WORKFLOW workflow run]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)." --repo github/docs-content --label "workflow-generated")"
4951
echo 'NEW_ISSUE='$new_issue_url >> $GITHUB_ENV
5052
env:
5153
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_BASE}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
echo "Creating pull request..."
128128
gh pr create \
129129
--title "Delete orphan files ($current_daystamp)" \
130-
--body '👋 humans. This PR was generated from docs-internal/.github/workflows/delete-orphan-translation-files.yml.
130+
--body '👋 humans. This PR was generated by the [Delete orphan translation files](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) workflow run.
131131
' \
132132
--repo "${{ matrix.language_repo }}" \
133133
--label "workflow-generated" \

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,6 @@ jobs:
259259
No action is required from the first responder for the Docs content team. This PR is automatically added to the Docs content review board. Any writer can review this by checking that the PR looks sensible. If CI does not pass or other problems arise, contact #docs-engineering on slack.
260260
261261
262-
When the DRI for the CodeQL CLI release is ready to publish, they will ask us to merge this PR in #docs-content.'
262+
When the DRI for the CodeQL CLI release is ready to publish, they will ask us to merge this PR in #docs-content.
263+
264+
_Generated by the [Generate code scanning query lists](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) workflow run._'

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ jobs:
4848
git push
4949
gh pr create \
5050
--title "Update list of allowed IPs" \
51-
--body 'This PR updates the list of allowed IPs in Moda. It is automatically generated.' \
51+
--body "This PR updates the list of allowed IPs in Moda. It is automatically generated.
52+
53+
_Generated by the [Update Moda allowed IPs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) workflow run._" \
5254
--label "workflow-generated" \
5355
--head=$branchname
5456
echo "Pull request created"

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ jobs:
9090
to make sure they aren't referenced anywhere
9191
and then approve and merge the pull request.
9292
For more information, see [Doc: Orphaned Features](https://github.com/github/docs-engineering/blob/main/docs/orphaned-features.md).
93+
94+
Generated by the [orphaned features workflow run]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID).
9395
EOM
9496
)
9597

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ jobs:
9898
If you are the first responder, please spot check some of the unused assets to make sure they aren't referenced anywhere. Then, approve and merge the pull request.
9999
100100
For more information, see [Doc: Orphaned Assets](https://github.com/github/docs-engineering/blob/main/docs/orphaned-assets.md) and [Doc: Reusables CLI](https://github.com/github/docs-internal/tree/main/src/content-render/scripts/reusables-cli).
101+
102+
Generated by the [orphaned files workflow run]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID).
101103
EOM
102104
)
103105

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ jobs:
5353
- Routed to another channel / team
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
56+
57+
---
58+
_Generated by the [${context.workflow}](${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}) workflow run._
5659
`,
5760
labels: ['on track','open source', 'sme-review', 'workflow-generated'],
5861
});

.github/workflows/sync-openapi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ jobs:
113113
114114
Docs First Responders should follow [the acting-as-the-first-responder instructions](https://github.com/github/docs-team/blob/main/contributing-to-docs/first-responder/acting-as-the-first-responder.md?plain=1#L156).
115115
116-
If CI does not pass or other problems arise, contact #docs-engineering on slack.' \
116+
If CI does not pass or other problems arise, contact #docs-engineering on slack.
117+
118+
_Generated by the [Sync OpenAPI schema](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) workflow run._' \
117119
--repo github/docs-internal \
118120
--label github-openapi-bot,workflow-generated \
119121
--head=$branchname \

.github/workflows/sync-sdk-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
> This PR is auto-generated. Do not edit it directly — make changes in the [copilot-sdk docs](https://github.com/github/copilot-sdk/tree/main/docs) instead.
217217
218218
---
219-
_Generated by the [sync-sdk-docs](https://github.com/github/docs-internal/actions/workflows/sync-sdk-docs.yml) workflow._"
219+
_Generated by the [sync-sdk-docs workflow run]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)._"
220220
221221
EXISTING_PR=$(gh pr list --head "$SYNC_BRANCH" --json number --jq '.[0].number' 2>/dev/null || true)
222222

0 commit comments

Comments
 (0)