Skip to content

Commit 9e46fa1

Browse files
authored
Merge pull request #46823 from github/repo-sync
Repo sync
2 parents 7fa55a0 + 1e6ab0e commit 9e46fa1

85 files changed

Lines changed: 3155 additions & 202 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Awaiting Review reminder label message
2+
3+
# docs-internal mirrors workflows to github/docs, so send this reminder only in the public repo.
4+
on:
5+
# pull_request_target lets forked PRs receive the reminder.
6+
pull_request_target:
7+
types: [labeled]
8+
9+
jobs:
10+
comment-on-pr:
11+
if: github.repository == 'github/docs' && github.event.label.name == 'awaiting-review-reminder'
12+
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: write
15+
steps:
16+
- name: Comment with contribution guidance
17+
env:
18+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
PR_URL: ${{ github.event.pull_request.html_url }}
20+
run: |
21+
gh pr comment "$PR_URL" --body-file - <<'EOF'
22+
Please do not open pull requests to address issues opened by other contributors until the issue has been marked with the `help wanted` label. The Docs team needs time to assess the issue and determine the scope of the work.
23+
24+
For more information, see [Working on other contributors' issues](https://docs.github.com/en/contributing/collaborating-on-github-docs/about-contributing-to-github-docs#working-on-other-contributors-issues).
25+
EOF

‎content/admin/configuring-settings/configuring-github-connect/enabling-dependabot-for-your-enterprise.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Before you can enable {% data variables.product.prodname_dependabot_alerts %}, y
9090
> [!TIP]
9191
> We recommend configuring {% data variables.product.prodname_dependabot_alerts %} without notifications for the first few days to avoid an overload of realtime notifications. After a few days, you can enable notifications to receive {% data variables.product.prodname_dependabot_alerts %} as usual.
9292
93-
You can now enable {% data variables.product.prodname_dependabot_alerts %} for all existing or new private and internal repositories in the enterprise settings page for "{% data variables.product.UI_advanced_security_ent %}." Alternatively, repository administrators and organization owners can enable {% data variables.product.prodname_dependabot_alerts %} for each repository and organization. Public repositories are always enabled by default. For more information, see [AUTOTITLE](/enterprise-server@latest/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/configure-dependabot-alerts).
93+
You can now enable {% data variables.product.prodname_dependabot_alerts %} for all existing or new private and internal repositories in the enterprise settings page for "{% data variables.product.UI_advanced_security_ent %}." Alternatively, repository administrators and organization owners can enable {% data variables.product.prodname_dependabot_alerts %} for each repository and organization. For public repositories, {% data variables.product.prodname_dependabot_alerts %} are enabled automatically once the dependency graph is enabled for the repository. For more information, see [AUTOTITLE](/enterprise-server@latest/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/configure-dependabot-alerts).
9494

9595
## Enabling {% data variables.product.prodname_dependabot_updates %}
9696

‎content/authentication/keeping-your-account-and-data-secure/about-anonymized-urls.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ Videos also get anonymized URLs with the same format as image URLs, but are not
1919

2020
Anyone who receives your anonymized URL, directly or indirectly, may view your image or video. To keep sensitive media files private, restrict them to a private network or a server that requires authentication instead of using Camo.
2121

22+
## Removing {% data variables.product.github %}-hosted attachments
23+
24+
Files and images hosted under `github.com/user-attachments/` are separate from the comments and pull request descriptions that link to them. Removing a link from an issue comment or pull request description does not necessarily delete the uploaded file. An image uploaded while editing a pull request description can remain available even if you remove it before saving the description.
25+
26+
To ask about removing an uploaded attachment, contact {% data variables.contact.contact_support %}. Support may be able to help remove it even if you no longer have its original URL. After an attachment is deleted, its URL should return a 404 error.
27+
28+
Attachment deletion is different from purging an image from Camo's cache. For more information about purging the cache, see [Removing an image from Camo's cache](#removing-an-image-from-camos-cache).
29+
2230
## Troubleshooting issues with Camo
2331

2432
In rare circumstances, images that are processed through Camo might not appear on {% data variables.product.prodname_dotcom %}. Here are some steps you can take to determine where the problem lies.

‎content/billing/how-tos/products/use-cost-centers.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ After you create a cost center, you can add a monthly budget and receive alerts
4949

5050
You can view the usage of your cost centers and download the usage data for further analysis. See [AUTOTITLE](/billing/tutorials/gather-insights).
5151

52+
## Finding the cost center for a resource
53+
54+
You can use the REST API to find which cost center a user, organization, repository, or enterprise team belongs to, without listing and searching through all cost centers.
55+
56+
Enterprise owners and billing managers can look up any resource in the enterprise. Organization owners and holders of a custom role with fine-grained read access to enterprise billing are limited to resources and cost centers they can access.
57+
58+
The endpoint returns the cost center's ID and name, or an empty `memberships` array if the resource is not assigned to a cost center. For parameters and authentication requirements, see [AUTOTITLE](/rest/billing/cost-centers).
59+
5260
## Viewing, editing, and deleting cost centers
5361

5462
You can view, edit, and delete cost centers to manage your business units effectively.

‎content/billing/tutorials/control-costs-at-scale.md‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,47 @@ The response confirms the successful addition of resources. If any resources wer
242242

243243
If the endpoint responds with `Problems parsing JSON`, use a JSON validator to check that the data specified in the `--input` option is valid.
244244

245+
### Verify a resource's cost center assignment
246+
247+
After adding resources, you can look up a resource directly to check which cost center it belongs to. You don't need to list and search through all cost centers.
248+
249+
In your terminal, run the following command, replacing `ENTERPRISE` with your enterprise slug and `USERNAME` with the login of a user you added.
250+
251+
```shell copy
252+
gh api \
253+
--method GET \
254+
-H "Accept: application/vnd.github+json" \
255+
-H "X-GitHub-Api-Version: {{ defaultRestApiVersion }}" \
256+
/enterprises/ENTERPRISE/settings/billing/cost-centers/memberships \
257+
-f resource_type=user \
258+
-f name=USERNAME
259+
```
260+
261+
The response includes the cost center's ID and name. For example, a lookup for `monalisa` assigned to the cost center created earlier returns:
262+
263+
```json
264+
{
265+
"resource": {
266+
"type": "user",
267+
"identifier": {
268+
"login": "monalisa"
269+
}
270+
},
271+
"memberships": [
272+
{
273+
"cost_center": {
274+
"id": "3312fdf2-5950-4f64-913d-e734124059c9",
275+
"name": "NAME"
276+
}
277+
}
278+
]
279+
}
280+
```
281+
282+
If the resource is not assigned to a cost center, the `memberships` array is empty.
283+
284+
You can also look up an organization, repository, or enterprise team. Set `resource_type` to `organization`, `repository`, or `team`, and set `name` to the organization slug, `owner/repo`, or enterprise team slug, respectively. See [AUTOTITLE](/rest/billing/cost-centers).
285+
245286
## 5. Set budgets with the REST API
246287

247288
You can create budgets programmatically to apply spending controls to the cost centers you've created. This is particularly useful for managing usage-based costs like {% data variables.product.prodname_ai_credits_short %} at scale.

‎content/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/configure-security-updates.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ You can also enable or disable {% data variables.product.prodname_dependabot_sec
3636
{% data reusables.repositories.navigate-to-repo %}
3737
{% data reusables.repositories.sidebar-settings %}
3838
{% data reusables.repositories.navigate-to-code-security-and-analysis %}
39-
1. To the right of "{% data variables.product.prodname_dependabot %} security updates," click **Enable** to enable the feature or **Disable** to disable it. {% ifversion fpt or ghec %}For public repositories, the button is disabled if the feature is always enabled.{% endif %}
39+
1. To the right of "{% data variables.product.prodname_dependabot %} security updates," click **Enable** to enable the feature or **Disable** to disable it.
4040

4141
## Grouping {% data variables.product.prodname_dependabot_security_updates %} into a single pull request
4242

‎content/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,15 @@ You can list and manage your LSP servers in an interactive CLI session using the
305305

306306
| Slash command | Description |
307307
|---------------------------|-------------|
308-
| `/lsp` or `/lsp show` | Show the status of all configured LSP servers. |
308+
| `/lsp list` (or `/lsp show`) | Show the status of all configured LSP servers. |
309309
| `/lsp test SERVER-NAME` | Test whether a server starts correctly. |
310310
| `/lsp reload` | Reload LSP configurations from disk. |
311311
| `/lsp logs` | Open the live LSP services panel to view server logs. |
312-
| `/lsp help` | Show `/lsp` command information. |
312+
| `/lsp` or `/lsp help` | Show `/lsp` command information. |
313313

314314
### Listing available LSP servers
315315

316-
1. In {% data variables.copilot.copilot_cli_short %}, confirm that the LSP server you chose is available by using the `/lsp` slash command. You will see output such as:
316+
1. In {% data variables.copilot.copilot_cli_short %}, confirm that the LSP server you chose is available by using the `/lsp list` slash command. You will see output such as:
317317

318318
```text
319319
● LSP Server Status:

‎content/copilot/how-tos/copilot-cli/use-copilot-cli/delegate-tasks-to-cca.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/use-copilot-c
3232

3333
## Delegate tasks to {% data variables.copilot.copilot_cloud_agent %}
3434

35-
You can delegate a task to {% data variables.copilot.copilot_cloud_agent %} on {% data variables.product.github %} by using the `/delegate`slash command, followed by a prompt:
35+
You can delegate a task to {% data variables.copilot.copilot_cloud_agent %} on {% data variables.product.github %} by using the `/delegate` slash command, followed by a prompt:
3636

3737
```shell
3838
/delegate complete the API integration tests and fix any failing edge cases
@@ -46,6 +46,12 @@ Alternatively, prefix a prompt with `&` to delegate it:
4646

4747
{% data variables.product.prodname_copilot_short %} will ask to commit any of your unstaged changes as a checkpoint in a new branch it creates. {% data variables.copilot.copilot_cloud_agent %} will open a draft pull request, make changes in the background, and request a review from you.
4848

49+
By default, the pull request targets your current branch. To target a different branch, add `--base BRANCH-NAME` after `/delegate`. For example:
50+
51+
```shell
52+
/delegate --base main complete the API integration tests and fix any failing edge cases
53+
```
54+
4955
{% data variables.product.prodname_copilot_short %} will provide a link to the pull request and agent session on {% data variables.product.github %} once the session begins.
5056

5157
## Next steps

‎content/copilot/how-tos/copilot-cli/use-copilot-cli/manage-pull-requests.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The `/pr` slash command has several subcommands that you can use to perform diff
9090
<td align="center">Yes</td>
9191
</tr>
9292
<tr>
93-
<td><code>/pr automerge</code></td>
93+
<td><code>/pr agentmerge</code></td>
9494
<td>Do the same as <code>/pr auto</code>, then merge the pull request once it is green. <a href="#automatically-merging-the-pull-request">Find out more</a></td>
9595
<td align="center">No</td>
9696
<td align="center">Yes</td>
@@ -224,12 +224,12 @@ You can append instructions to guide the pull request creation. For example:
224224
`/pr auto` deliberately stops when the pull request is green. If you also want {% data variables.product.prodname_copilot_short %} to merge the pull request, enter:
225225

226226
```copilot copy
227-
/pr automerge
227+
/pr agentmerge
228228
```
229229

230230
This runs the same loop as `/pr auto`. Once the pull request is no longer a draft, has no unresolved requests for changes, and all required checks are passing, {% data variables.product.prodname_copilot_short %} enables auto-merge rather than merging the pull request itself. {% data variables.product.prodname_dotcom %} then completes the merge as soon as every remaining requirement is satisfied, including any required approvals and merge queue. {% data variables.product.prodname_copilot_short %} keeps the loop running—handling any further review feedback or check failures—until the pull request is merged or closed.
231231

232-
You can use `/pr agentmerge` as an alias for `/pr automerge`.
232+
You can use `/pr automerge` as an alias for `/pr agentmerge`.
233233

234234
## Further reading
235235

0 commit comments

Comments
 (0)