Skip to content

Commit 757ec75

Browse files
authored
Merge pull request #39814 from github/repo-sync
Repo sync
2 parents 6258aba + 470770b commit 757ec75

File tree

32 files changed

+444
-486
lines changed

32 files changed

+444
-486
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Changelog prompt when a PR is closed
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
comment-on-pr:
13+
# This workflow should only run on the 'github/docs-internal' repository because it posts changelog instructions
14+
# and links that are specific to the internal documentation process and resources.
15+
# It also only runs if PR is merged into the main branch.
16+
if: github.repository == 'github/docs-internal' && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Check if PR author is in docs-content team
22+
id: check_team
23+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
24+
with:
25+
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
26+
script: |
27+
try {
28+
const pr = context.payload.pull_request;
29+
await github.rest.teams.getMembershipForUserInOrg({
30+
org: 'github',
31+
team_slug: 'docs-content',
32+
username: pr.user.login,
33+
});
34+
core.exportVariable('CONTINUE_WORKFLOW', 'true');
35+
} catch(err) {
36+
core.info("Workflow triggered by a merged PR, but the PR author is not a member of the docs-content team.");
37+
core.exportVariable('CONTINUE_WORKFLOW', 'false');
38+
}
39+
40+
- name: Post changelog instructions comment
41+
42+
if: env.CONTINUE_WORKFLOW == 'true'
43+
44+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
45+
with:
46+
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
47+
script: |
48+
// Get PR author username
49+
const pr = context.payload.pull_request;
50+
const prAuthor = pr.user.login;
51+
52+
// Compose the comment body with readable YAML and correct formatting
53+
const commentBody =
54+
"👋 @" + prAuthor +
55+
" - Did this PR add noteworthy changes to the GitHub docs? If so, you might want to publicize this by adding an entry to " +
56+
"the [Docs changelog](https://github.com/github/docs-internal/blob/main/CHANGELOG.md).\n\n" +
57+
"To do this, type `/changelog` in a new comment on this PR and complete the fields.\n\n" +
58+
"A message will be posted to the **#docs-changelog** channel and a PR will be raised to update the [CHANGELOG.md](/CHANGELOG.md) file.";
59+
60+
// Post the comment
61+
await github.rest.issues.createComment({
62+
owner: context.repo.owner,
63+
repo: context.repo.repo,
64+
issue_number: pr.number,
65+
body: commentBody
66+
});

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Docs changelog
22

3+
**12 August 2025**
4+
5+
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).
6+
7+
<hr>
8+
39
**4 August 2025**
410

511
To address common pain points that developers face when remediating a leaked secret, we created a new article, "[Remediating a leaked secret](https://docs.github.com/en/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/remediating-a-leaked-secret)".

content/billing/concepts/enterprise-billing/billing-for-enterprises.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Billing for GitHub Enterprise
3-
intro: 'You can view billing information for your enterprise account on {% data variables.product.prodname_dotcom_the_website %}.'
3+
intro: 'Learn how your bill is calculated based on how many {% data variables.product.prodname_enterprise %} licenses you use.'
44
redirect_from:
55
- /admin/overview/managing-billing-for-your-enterprise
66
- /enterprise/admin/installation/managing-billing-for-github-enterprise
@@ -36,10 +36,24 @@ If you have an enterprise account on {% data variables.product.prodname_ghe_clou
3636
> {% data reusables.billing.ghes-with-no-enterprise-account %}
3737
> {% endif %}
3838
39+
To learn which people consume a license in your enterprise, see [AUTOTITLE](/billing/reference/license-consumption).
40+
3941
## Invoiced customers
4042

4143
For invoiced customers, each invoice includes a single bill that covers the cost of {% data variables.product.prodname_enterprise %} licenses used, as well as your use of paid services. For example, in addition to your usage for {% data variables.product.prodname_enterprise %}, you may also use {% data variables.product.prodname_GH_secret_protection %}.
4244

45+
## Billing models for {% data variables.product.prodname_enterprise %} licenses
46+
47+
There are two billing models for {% data variables.product.prodname_enterprise %} licenses: **usage-based** and **volume**.
48+
49+
{% data reusables.billing.do-i-have-usage-based %}
50+
51+
## License usage across deployments
52+
53+
{% data reusables.enterprise-licensing.unique-user-licensing-model %}
54+
55+
To ensure the same user isn't consuming more than one license for multiple enterprise deployments, you synchronize license usage between your {% data variables.product.prodname_ghe_server %} and {% data variables.product.prodname_ghe_cloud %} environments. See [AUTOTITLE](/billing/managing-your-license-for-github-enterprise/about-licenses-for-github-enterprise).
56+
4357
## Further reading
4458

4559
* [AUTOTITLE](/admin/overview/about-enterprise-accounts)

content/billing/concepts/enterprise-billing/visual-studio-subs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ For more information about the setup of {% data variables.visual_studio.prodname
3434

3535
After you assign a license for {% data variables.visual_studio.prodname_vss_ghec %} to a subscriber, the subscriber will use the {% data variables.product.prodname_enterprise %} portion of the license by joining an organization in your enterprise with a personal account on {% data variables.product.prodname_dotcom %}. If the verified email address for the personal account of an enterprise member on {% data variables.product.prodname_dotcom %} matches the User Principal Name (UPN) for a subscriber to your {% data variables.product.prodname_vs %} account, the {% data variables.product.prodname_vs %} subscriber will automatically consume one license for {% data variables.visual_studio.prodname_vss_ghec %}.
3636

37-
> [!NOTE] For {% data variables.product.prodname_emu %} only, to make sure a user account consumes a {% data variables.product.prodname_vs %} license, ensure the {% data variables.product.prodname_vs %} UPN matches the SCIM `userName` attribute or the email address from the linked identity on the {% data variables.product.prodname_dotcom %} account.
37+
> [!NOTE] For {% data variables.product.prodname_emus %} only, to make sure a user account consumes a {% data variables.product.prodname_vs %} license, ensure the {% data variables.product.prodname_vs %} UPN matches the SCIM `userName` attribute or the email address from the linked identity on the {% data variables.product.prodname_dotcom %} account. Unaffiliated users are included in the automatic matching behavior and can consume a license for {% data variables.visual_studio.prodname_vss_ghec %} while remaining unaffiliated.
3838
3939
The total quantity of your licenses for your enterprise on {% data variables.product.prodname_dotcom %} is the sum of any standard {% data variables.product.prodname_enterprise %} licenses and the number of {% data variables.product.prodname_vs %} subscription licenses that include access to {% data variables.product.prodname_dotcom %}.
4040

content/billing/concepts/impact-of-plan-changes.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,37 @@ topics:
1919
shortTitle: Impact of plan changes
2020
contentType: concepts
2121
---
22+
23+
## Upgrades and downgrades
24+
2225
When you upgrade the subscription for your personal account or organization, changes are applied immediately. When you downgrade your subscription, changes are applied at the end of your current billing cycle.
2326

27+
{% data reusables.accounts.accounts-billed-separately %}
28+
2429
Making a change to your paid personal account, organization, or enterprise account does not affect billing for use of {% data variables.product.github %} features, such as {% data variables.product.prodname_copilot_short %} or paid apps purchased in {% data variables.product.prodname_marketplace %}.
2530

2631
For more information, see [AUTOTITLE](/get-started/learning-about-github/githubs-plans) and [AUTOTITLE](/billing/using-the-billing-platform/about-billing-on-github).
2732

28-
## Example of canceling a paid subscription for a personal account or organization
33+
## Examples of plan changes
34+
35+
* [Example of canceling a paid subscription for a personal account or organization](#example-of-canceling-a-paid-subscription-for-a-personal-account-or-organization)
36+
* [Example of changing from a yearly to a monthly subscription for a personal account or organization](#example-of-changing-from-a-yearly-to-a-monthly-subscription-for-a-personal-account-or-organization)
37+
* [Example of adding paid seats to your organization](#example-of-adding-paid-seats-to-your-organization)
38+
* [Example of removing paid seats from your organization](#example-of-removing-paid-seats-from-your-organization)
39+
40+
### Example of canceling a paid subscription for a personal account or organization
2941

3042
Kumiko pays for a monthly subscription on the 5th of every month. If Kumiko downgrades from the paid subscription to {% data variables.product.prodname_free_user %} on October 10th, her paid subscription will remain in effect until the end of her current billing cycle on November 4th. On November 5th, her account will move to {% data variables.product.prodname_free_user %}.
3143

32-
## Example of changing from a yearly to a monthly subscription for a personal account or organization
44+
### Example of changing from a yearly to a monthly subscription for a personal account or organization
3345

3446
Ravi pays for a yearly subscription on October 5th every year. If Ravi switches from a yearly to monthly billing on December 10th, his account remains on the yearly subscription until the end of its current billing cycle on October 4th the next year. On October 5th of the next year, Ravi will be charged for a month of service. His next billing date will be November 5th.
3547

36-
## Example of adding paid seats to your organization
48+
### Example of adding paid seats to your organization
3749

3850
Mada's organization pays for 25 seats on the 15th of every month. If Mada adds ten paid seats on June 4th, her organization is immediately charged a prorated amount for ten additional seats for the time between June 4th and June 14th, and the seats are available to use immediately. On June 15th, Mada's organization will pay for 35 seats.
3951

40-
## Example of removing paid seats from your organization
52+
### Example of removing paid seats from your organization
4153

4254
Stefan's organization pays for 50 seats every year on May 20th. If Stefan removes 20 seats and downgrades to a new total of 30 paid seats on September 30, his organization can still access its 50 paid seats until the end of its current billing cycle on May 19th. On May 20th, the downgrade will take effect - Stefan's organization will pay for 30 seats and will have access to 30 paid seats.
4355

content/billing/concepts/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ topics:
1010
- Billing
1111
children:
1212
- /billing-cycles
13-
- /license-consumption
1413
- /azure-subscriptions
1514
- /impact-of-plan-changes
1615
- /discounted-plans
@@ -19,3 +18,4 @@ children:
1918
- /third-party-payments
2019
contentType: concepts
2120
---
21+

0 commit comments

Comments
 (0)