From d2d80b576dfaf48096b4d8496058a01644b25ab5 Mon Sep 17 00:00:00 2001 From: hubwriter Date: Wed, 13 Aug 2025 10:37:33 +0100 Subject: [PATCH 1/4] Add PR assignment to commenter in workflow --- .github/workflows/create-changelog-pr.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/create-changelog-pr.yml b/.github/workflows/create-changelog-pr.yml index 26ccaf0239a9..edcd49ef3ab6 100644 --- a/.github/workflows/create-changelog-pr.yml +++ b/.github/workflows/create-changelog-pr.yml @@ -137,6 +137,27 @@ jobs: labels: ['ready-for-doc-review'] }); + - name: Assign PR to commenter + if: env.CONTINUE_WORKFLOW == 'true' + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea + env: + # Reuse the PR number captured earlier + PULL_REQUEST_NUMBER: ${{ steps.create_pull_request.outputs.pull-request-number }} + with: + github-token: ${{ secrets.DOCS_BOT_PAT_BASE }} + script: | + try { + const username = context.payload.comment.user.login; + await github.rest.issues.addAssignees({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: Number(process.env.PULL_REQUEST_NUMBER), + assignees: [username] + }); + } catch (err) { + core.info(`Failed to assign PR to @${context.payload.comment.user.login}: ${err.message}`); + } + - uses: ./.github/actions/slack-alert if: ${{ failure() && github.event_name != 'workflow_dispatch' }} with: From e99664dfa07db45b092532ce6595b6be955cd789 Mon Sep 17 00:00:00 2001 From: hubwriter Date: Wed, 13 Aug 2025 11:03:53 +0100 Subject: [PATCH 2/4] Update CHANGELOG with new tutorial for Mermaid diagrams Added a tutorial for using Copilot to create Mermaid diagrams. --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef81ceb50798..705fdc11875c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ We’ve updated the documentation for Copilot repository custom instructions to See: [Adding repository custom instructions for GitHub Copilot](https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions?tool=eclipse) and [About customizing GitHub Copilot Chat responses](https://docs.github.com/en/copilot/concepts/response-customization?tool=eclipse). +
+ +**12 August 2025** + We have added a tutorial for using Copilot to create Mermaid diagrams at [Creating Diagrams](https://docs.github.com/en/copilot/tutorials/copilot-chat-cookbook/communicate-effectively/creating-diagrams).
From e5c282e50d5b0a3ae0a4bb5c4b4add430d1006c3 Mon Sep 17 00:00:00 2001 From: hubwriter Date: Wed, 13 Aug 2025 11:18:31 +0100 Subject: [PATCH 3/4] Enhance changelog PR message with URL and notes Updated the changelog PR body to include a link to the CHANGELOG file and added notes for reviewers. --- .github/workflows/create-changelog-pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-changelog-pr.yml b/.github/workflows/create-changelog-pr.yml index edcd49ef3ab6..0ec06dc3f802 100644 --- a/.github/workflows/create-changelog-pr.yml +++ b/.github/workflows/create-changelog-pr.yml @@ -15,6 +15,7 @@ permissions: env: CHANGELOG_FILE: CHANGELOG.md + CHANGELOG_FILE_URL: https://github.com/github/docs-internal/blob/main/CHANGELOG.md jobs: docs-changelog-pr: @@ -113,7 +114,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, title: `Update docs changelog (for PR #${context.payload.issue.number})`, - body: `### Automated docs changelog update\n\n**Purpose:** Update the ${{ env.CHANGELOG_FILE }} file with details of a recent docs change.\n\nThis PR is an automated update, generated by the create-changelog-pr.yml Actions workflow as a result of a "Changelog summary" comment being added to [PR #${context.payload.issue.number}](${context.payload.issue.html_url}).\n\n**Note for reviewer**: This change to the ${{ env.CHANGELOG_FILE }} file will be synced to the public docs site, so make sure that the content of the entry is appropriate for public consumption. If the content is wholly inappropriate for public consumption, then this PR can be closed.\n\n
Original PR comment posted by @${context.payload.comment.user.login}, using the /changelog slash command:\n\n${context.payload.comment.body}
`, + body: `### Automated docs changelog update\n\n**Purpose:** Update the [${{ env.CHANGELOG_FILE }}](${{ env.CHANGELOG_FILE_URL }}) file with details of a recent docs change.\n\nThis PR is an automated update, generated by the create-changelog-pr.yml Actions workflow as a result of a "Changelog summary" comment being added to [PR #${context.payload.issue.number}](${context.payload.issue.html_url}).\n\n**Notes for reviewer**:\n- This change to the [${{ env.CHANGELOG_FILE }}](${{ env.CHANGELOG_FILE_URL }}) file will be synced to the public docs site, so make sure that the content of the entry is appropriate for public consumption. If the content is wholly inappropriate for public consumption, then this PR can be closed.\n- Make sure the format of this changelog entry is consistent with the other entries in the file.\n\n
Original PR comment posted by @${context.payload.comment.user.login}, using the /changelog slash command:\n\n${context.payload.comment.body}
`, head: process.env.BRANCH, base: 'main' }); From 54090f5ef27d505371d2d0397406ec2548c51841 Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Wed, 13 Aug 2025 08:15:06 -0400 Subject: [PATCH 4/4] Add note for configure 'needrestart' during runner service install (#57098) --- .../self-hosted-runners/configure-the-application.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/actions/how-tos/manage-runners/self-hosted-runners/configure-the-application.md b/content/actions/how-tos/manage-runners/self-hosted-runners/configure-the-application.md index 574ad030bca3..6acc98bd57f1 100644 --- a/content/actions/how-tos/manage-runners/self-hosted-runners/configure-the-application.md +++ b/content/actions/how-tos/manage-runners/self-hosted-runners/configure-the-application.md @@ -101,6 +101,13 @@ Start the service with the following command: sudo ./svc.sh start ``` +> [!NOTE] +> On Debian-based Linux systems (such as Debian or Ubuntu) with `needrestart` enabled, you can prevent `needrestart` from restarting the runner service during a workflow job by configuring it to ignore the runner service. Run the following command: +> +> ```bash +> echo '$nrconf{override_rc}{qr(^actions\.runner\..+\.service$)} = 0;' | sudo tee /etc/needrestart/conf.d/actions_runner_services.conf +> ``` + {% endlinux %} {% windows %}