Skip to content

Commit 089aeec

Browse files
authored
Merge branch 'main' into secret-scanning-ga
2 parents ed5f795 + c9d7293 commit 089aeec

111 files changed

Lines changed: 4018 additions & 3961 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.

.github/workflows/first-responder-docs-content.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
issue_number: issueNumber
3737
})
3838
const teamMembers = await github.request(
39-
`/orgs/github/teams/docs/members`
39+
`/orgs/github/teams/docs/members?per_page=100`
4040
)
4141
const logins = teamMembers.data.map(member => member.login)
4242
// ignore PRs opened by docs bot accounts

.github/workflows/move-ready-to-merge-issues.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Move and unlabel ready to merge issues
55
# **Who does it impact**: Open source contributors, open-source maintainers.
66

77
on:
8-
pull_request:
8+
pull_request_target:
99
types:
1010
- labeled
1111

.github/workflows/openapi-decorate.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ name: OpenAPI generate decorated schema files
77
on:
88
workflow_dispatch:
99
pull_request:
10-
types: [opened]
1110

1211
jobs:
1312
generate-decorated-files:

.github/workflows/triage-pull-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Triage new pull requests
55
# **Who does it impact**:
66

77
on:
8-
pull_request:
8+
pull_request_target:
99
types:
1010
- reopened
1111
- opened

.github/workflows/triage-stale-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
days-before-pr-stale: 7
2222
days-before-pr-close: 3
2323
stale-pr-label: 'stale'
24-
exempt-pr-labels: 'waiting for review'
24+
exempt-pr-labels: 'waiting for review,never-stale'
2525
stale_staff:
2626
if: github.repository == 'github/docs'
2727
runs-on: ubuntu-latest
@@ -40,3 +40,4 @@ jobs:
4040
# a comment being posted every 14 days as an infinite loop, which is what
4141
# we want
4242
stale-pr-label: 'waiting for review'
43+
exempt-pr-labels: 'never-stale'

.pa11yci

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,16 @@
1313
"http://localhost:4001/en/actions",
1414
"http://localhost:4001/en/github/authenticating-to-github/creating-a-personal-access-token",
1515
"http://localhost:4001/en/github/authenticating-to-github/checking-for-existing-ssh-keys",
16-
"http://localhost:4001/en/github/using-git/changing-a-remotes-url",
16+
"http://localhost:4001/en/github/getting-started-with-github/managing-remote-repositories",
1717
"http://localhost:4001/en/github/getting-started-with-github/set-up-git",
1818
"http://localhost:4001/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository",
1919
"http://localhost:4001/en/github/writing-on-github/basic-writing-and-formatting-syntax",
2020
"http://localhost:4001/en/actions/reference/workflow-syntax-for-github-actions",
21-
"http://localhost:4001/en/github/using-git/which-remote-url-should-i-use",
21+
"http://localhost:4001/en/github/getting-started-with-github/about-remote-repositories",
2222
"http://localhost:4001/en/github/collaborating-with-issues-and-pull-requests/resolving-a-merge-conflict-using-the-command-line",
23-
"http://localhost:4001/en/github/using-git/setting-your-username-in-git",
23+
"http://localhost:4001/en/github/getting-started-with-github/setting-your-username-in-git",
2424
"http://localhost:4001/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address",
2525
"http://localhost:4001/en/github/authenticating-to-github/configuring-two-factor-authentication",
26-
"http://localhost:4001/en/github/using-git/adding-a-remote",
2726
"http://localhost:4001/en/rest",
2827
"http://localhost:4001/en/github/working-with-github-pages/configuring-a-custom-domain-for-your-github-pages-site",
2928
"http://localhost:4001/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests",
@@ -55,7 +54,7 @@
5554
"http://localhost:4001/en/actions/getting-started-with-github-actions",
5655
"http://localhost:4001/en/actions/reference/events-that-trigger-workflows",
5756
"http://localhost:4001/en/desktop/getting-started-with-github-desktop/installing-github-desktop",
58-
"http://localhost:4001/en/github/using-git/ignoring-files",
57+
"http://localhost:4001/en/github/getting-started-with-github/ignoring-files",
5958
"http://localhost:4001/en/desktop",
6059
"http://localhost:4001/en/packages",
6160
"http://localhost:4001/en/actions/configuring-and-managing-workflows/configuring-a-workflow",
@@ -71,7 +70,7 @@
7170
"http://localhost:4001/en/actions/reference/context-and-expression-syntax-for-github-actions",
7271
"http://localhost:4001/en/github/managing-files-in-a-repository/navigating-code-on-github",
7372
"http://localhost:4001/en/github/teaching-and-learning-with-github-education/applying-for-a-student-developer-pack",
74-
"http://localhost:4001/en/github/using-git/caching-your-github-credentials-in-git",
73+
"http://localhost:4001/en/github/getting-started-with-github/caching-your-github-credentials-in-git",
7574
"http://localhost:4001/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request",
7675
"http://localhost:4001/en/github/setting-up-and-managing-your-github-user-account/inviting-collaborators-to-a-personal-repository",
7776
"http://localhost:4001/en/github/setting-up-and-managing-your-github-user-account/changing-your-github-username",
@@ -81,7 +80,6 @@
8180
"http://localhost:4001/en/actions/configuring-and-managing-workflows/using-environment-variables",
8281
"http://localhost:4001/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets",
8382
"http://localhost:4001/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository",
84-
"http://localhost:4001/en/github/using-git/removing-a-remote",
8583
"http://localhost:4001/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line",
8684
"http://localhost:4001/en/github/setting-up-and-managing-billing-and-payments-on-github/setting-your-billing-email",
8785
"http://localhost:4001/en/github/setting-up-and-managing-your-github-user-account",
@@ -90,8 +88,8 @@
9088
"http://localhost:4001/en/github/authenticating-to-github/about-two-factor-authentication",
9189
"http://localhost:4001/en/github/working-with-github-pages/about-custom-domains-and-github-pages",
9290
"http://localhost:4001/en/github/searching-for-information-on-github/searching-code",
93-
"http://localhost:4001/en/github/using-git/configuring-git-to-handle-line-endings",
94-
"http://localhost:4001/en/github/using-git/getting-changes-from-a-remote-repository",
91+
"http://localhost:4001/en/github/getting-started-with-github/configuring-git-to-handle-line-endings",
92+
"http://localhost:4001/en/github/getting-started-with-github/getting-changes-from-a-remote-repository",
9593
"http://localhost:4001/en/github/authenticating-to-github/generating-a-new-gpg-key",
9694
"http://localhost:4001/en/github/authenticating-to-github/accessing-github-using-two-factor-authentication",
9795
"http://localhost:4001/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository",

content/actions/managing-workflow-runs/reviewing-deployments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ versions:
1515

1616
Jobs that reference an environment configured with required reviewers will wait for an approval before starting. While a job is awaiting approval, it has a status of "Waiting". If a job is not approved within 30 days, the workflow run will be automatically canceled.
1717

18-
For more information about environments and required approvals, see "[Environments](/actions/reference/environments)." For information about how to review deployments with the REST API, see "[Workflow Runs](/rest/reference/actions#workflow-runs)."
18+
For more information about environments and required approvals, see "[Environments](/actions/reference/environments)."{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@next" or currentVersion ver_gt "enterprise-server@3.1" %} For information about how to review deployments with the REST API, see "[Workflow Runs](/rest/reference/actions#workflow-runs)."{% endif %}
1919

2020
### Approving or rejecting a job
2121

content/actions/reference/environments.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Environment protection rules and environment secrets are only available on publi
2121

2222
#### Environment protection rules
2323

24-
Environment protection rules require specific conditions to pass before a job referencing the environment can proceed. You can use environment protection rules to require a manual approval, delay a job, or restrict the environment to certain branches.
24+
Environment protection rules require specific conditions to pass before a job referencing the environment can proceed. {% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@next" or currentVersion ver_gt "enterprise-server@3.1" %}You can use environment protection rules to require a manual approval, delay a job, or restrict the environment to certain branches.{% else %}You can use environment protection rules to require a manual approval or delay a job.{% endif %}
2525

2626
##### Required reviewers
2727

@@ -33,6 +33,7 @@ For more information on reviewing jobs that reference an environment with requir
3333

3434
Use a wait timer to delay a job for a specific amount of time after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).
3535

36+
{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@next" or currentVersion ver_gt "enterprise-server@3.1" %}
3637
##### Deployment branches
3738

3839
Use deployment branches to restrict which branches can deploy to the environment. Below are the options for deployment branches for an environment:
@@ -42,7 +43,7 @@ Use deployment branches to restrict which branches can deploy to the environment
4243
* **Selected branches**: Only branches that match your specified name patterns can deploy to the environment.
4344

4445
For example, if you specify `releases/*` as a deployment branch rule, only branches whose name begins with `releases/` can deploy to the environment. (Wildcard characters will not match `/`. To match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.) If you add `main` as a deployment branch rule, a branch named `main` can also deploy to the environment. For more information about syntax options for deployment branches, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).
45-
46+
{% endif %}
4647
#### Environment secrets
4748

4849
Secrets stored in an environment are only available to workflow jobs that reference the environment. If the environment requires approval, a job cannot access environment secrets until one of the required reviewers approves it. For more information about secrets, see "[Encrypted secrets](/actions/reference/encrypted-secrets)."
@@ -58,7 +59,7 @@ Secrets stored in an environment are only available to workflow jobs that refere
5859
1. Enter a name for the environment, then click **Configure environment**. Environment names are not case sensitive. An environment name may not exceed 255 characters and must be unique within the repository.
5960
1. Configure any environment protection rules or environment secrets.
6061

61-
You can also create and configure environments through the REST API. For more information, see "[Environments](/rest/reference/repos#environments)" and "[Secrets](/rest/reference/actions#secrets)."
62+
{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@next" or currentVersion ver_gt "enterprise-server@3.1" %}You can also create and configure environments through the REST API. For more information, see "[Environments](/rest/reference/repos#environments)" and "[Secrets](/rest/reference/actions#secrets)."{% endif %}
6263

6364
Running a workflow that references an environment that does not exist will create an environment with the referenced name. The newly created environment will not have any protection rules or secrets configured. Anyone that can edit workflows in the repository can create environments via a workflow file, but only repository admins can configure the environment.
6465

@@ -82,4 +83,4 @@ Deleting an environment will delete all secrets and protection rules associated
8283
1. Next the the environment that you want to delete, click {% octicon "trashcan" aria-label="The trashcan icon" %}.
8384
2. Click **I understand, delete this environment**.
8485

85-
You can also delete environments through the REST API. For more information, see "[Environments](/rest/reference/repos#environments)."
86+
{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@next" or currentVersion ver_gt "enterprise-server@3.1" %}You can also delete environments through the REST API. For more information, see "[Environments](/rest/reference/repos#environments)."{% endif %}

content/desktop/contributing-and-collaborating-using-github-desktop/cloning-and-forking-repositories-from-github-desktop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ You can change how a fork behaves with the upstream repository in {% data variab
4444
{% data reusables.desktop.select-fork-behavior %}
4545

4646
### Further reading
47-
- [About remote repositories](/github/using-git/about-remote-repositories)
47+
- [About remote repositories](/github/getting-started-with-github/about-remote-repositories)

content/desktop/contributing-and-collaborating-using-github-desktop/syncing-your-branch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ When you pull to your local branch, you only update your local copy of the repos
1515

1616
To add changes from one branch to another branch, you can merge the branches. To apply changes to your branch from another branch in the same repository, you can merge the other branch into your branch on {% data variables.product.prodname_desktop %}. To request that changes from your branch are merged into another branch, in the same repository or in another repository in the network, you can create a pull request on {% data variables.product.prodname_desktop %}. For more information, see "[Merging another branch into your project branch](#merging-another-branch-into-your-project-branch)" and "[About pull requests](/github/collaborating-with-issues-and-pull-requests/about-pull-requests)."
1717

18-
Some workflows require or benefit from rebasing instead of merging. By rebasing you can reorder, edit, or squash commits together. For more information, see "[About Git rebase](/articles/about-git-rebase)" and "[Rebasing your project branch onto another branch](#rebasing-your-project-branch-onto-another-branch)."
18+
Some workflows require or benefit from rebasing instead of merging. By rebasing you can reorder, edit, or squash commits together. For more information, see "[About Git rebase](/github/getting-started-with-github/about-git-rebase)" and "[Rebasing your project branch onto another branch](#rebasing-your-project-branch-onto-another-branch)."
1919

2020
### Pulling to your local branch from the remote
2121

0 commit comments

Comments
 (0)