Skip to content

Commit 4ba9eea

Browse files
authored
Merge pull request #39826 from github/repo-sync
Repo sync
2 parents dd83503 + 54090f5 commit 4ba9eea

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.github/workflows/create-changelog-pr.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions:
1515

1616
env:
1717
CHANGELOG_FILE: CHANGELOG.md
18+
CHANGELOG_FILE_URL: https://github.com/github/docs-internal/blob/main/CHANGELOG.md
1819

1920
jobs:
2021
docs-changelog-pr:
@@ -113,7 +114,7 @@ jobs:
113114
owner: context.repo.owner,
114115
repo: context.repo.repo,
115116
title: `Update docs changelog (for PR #${context.payload.issue.number})`,
116-
body: `### Automated docs changelog update\n\n**Purpose:** Update the <code>${{ env.CHANGELOG_FILE }}</code> file with details of a recent docs change.\n\nThis PR is an automated update, generated by the <code>create-changelog-pr.yml</code> 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 <code>${{ env.CHANGELOG_FILE }}</code> 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<details><summary>Original PR comment posted by @${context.payload.comment.user.login}, using the <code>/changelog</code> slash command:</summary>\n\n${context.payload.comment.body}</details>`,
117+
body: `### Automated docs changelog update\n\n**Purpose:** Update the <code>[${{ env.CHANGELOG_FILE }}](${{ env.CHANGELOG_FILE_URL }})</code> file with details of a recent docs change.\n\nThis PR is an automated update, generated by the <code>create-changelog-pr.yml</code> 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 <code>[${{ env.CHANGELOG_FILE }}](${{ env.CHANGELOG_FILE_URL }})</code> 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<details><summary>Original PR comment posted by @${context.payload.comment.user.login}, using the <code>/changelog</code> slash command:</summary>\n\n${context.payload.comment.body}</details>`,
117118
head: process.env.BRANCH,
118119
base: 'main'
119120
});
@@ -137,6 +138,27 @@ jobs:
137138
labels: ['ready-for-doc-review']
138139
});
139140
141+
- name: Assign PR to commenter
142+
if: env.CONTINUE_WORKFLOW == 'true'
143+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
144+
env:
145+
# Reuse the PR number captured earlier
146+
PULL_REQUEST_NUMBER: ${{ steps.create_pull_request.outputs.pull-request-number }}
147+
with:
148+
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
149+
script: |
150+
try {
151+
const username = context.payload.comment.user.login;
152+
await github.rest.issues.addAssignees({
153+
owner: context.repo.owner,
154+
repo: context.repo.repo,
155+
issue_number: Number(process.env.PULL_REQUEST_NUMBER),
156+
assignees: [username]
157+
});
158+
} catch (err) {
159+
core.info(`Failed to assign PR to @${context.payload.comment.user.login}: ${err.message}`);
160+
}
161+
140162
- uses: ./.github/actions/slack-alert
141163
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
142164
with:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ We’ve updated the documentation for Copilot repository custom instructions to
66

77
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).
88

9+
<hr>
10+
11+
**12 August 2025**
12+
913
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).
1014

1115
<hr>

content/actions/how-tos/manage-runners/self-hosted-runners/configure-the-application.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ Start the service with the following command:
101101
sudo ./svc.sh start
102102
```
103103

104+
> [!NOTE]
105+
> 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:
106+
>
107+
> ```bash
108+
> echo '$nrconf{override_rc}{qr(^actions\.runner\..+\.service$)} = 0;' | sudo tee /etc/needrestart/conf.d/actions_runner_services.conf
109+
> ```
110+
104111
{% endlinux %}
105112
{% windows %}
106113

0 commit comments

Comments
 (0)