Skip to content

Commit d3838e8

Browse files
authored
Merge branch 'main' into graphql-explorer-query-params
2 parents 938639b + 9f24923 commit d3838e8

11,270 files changed

Lines changed: 124726 additions & 28113 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/allowed-actions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ module.exports = [
2727
"juliangruber/find-pull-request-action@2fc55e82a6d5d36fe1e7f1848f7e64fd02d99de9",
2828
"juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512",
2929
"lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8",
30-
"octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2",
3130
"pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07", //pascalgn/automerge@0.12.0
3231
"peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326",
3332
"peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd",

.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/remove-from-fr-board.yaml

Lines changed: 10 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -13,56 +13,15 @@ jobs:
1313
if: github.repository == 'github/docs-internal'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- id: find_project_cards
17-
uses: octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2
18-
with:
19-
query: |
20-
query($issue_node_id:ID!) {
21-
node(id:$issue_node_id) {
22-
... on Issue {
23-
projectCards(first: 10) {
24-
nodes {
25-
id
26-
project {
27-
name
28-
id
29-
}
30-
}
31-
}
32-
}
33-
... on PullRequest {
34-
projectCards(first: 10) {
35-
nodes {
36-
id
37-
project {
38-
name
39-
id
40-
}
41-
}
42-
}
43-
}
44-
}
45-
}
46-
issue_node_id: ${{ github.event.client_payload.command.resource.id }}
16+
- name: Remove issue from board
17+
if: ${{ github.event.client_payload.command.resource.type == 'Issue' }}
18+
run: gh issue edit "$ISSUE_URL" --remove-project "Docs content first responder"
4719
env:
48-
GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
49-
50-
- run: "echo 'Project cards found: ${{ steps.find_project_cards.outputs.data }}'"
51-
52-
- name: Get FR card
53-
env:
54-
QUERY_DATA: ${{ steps.find_project_cards.outputs.data }}
55-
run: |
56-
echo 'FR_CARDS='$(jq '.node.projectCards.nodes | .[] | select(.project.id == "MDc6UHJvamVjdDQ1NzI0ODI=") | .id' <<< "$QUERY_DATA") >> $GITHUB_ENV
57-
58-
- name: Delete card
59-
id: delete_project_card
60-
if: ${{ env.FR_CARDS }}
61-
uses: octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2
62-
with:
63-
query: |
64-
mutation DeleteCard {
65-
deleteProjectCard(input:{cardId:${{ env.FR_CARDS }}}) {deletedCardId}
66-
}
20+
GITHUB_TOKEN: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
21+
ISSUE_URL: https://github.com/${{ github.event.client_payload.command.repository.full_name }}/issues/${{ github.event.client_payload.command.resource.number }}
22+
- name: Remove PR from board
23+
if: ${{ github.event.client_payload.command.resource.type == 'PullRequest' }}
24+
run: gh pr edit "$PR_URL" --remove-project "Docs content first responder"
6725
env:
68-
GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
26+
GITHUB_TOKEN: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
27+
PR_URL: https://github.com/${{ github.event.client_payload.command.repository.full_name }}/pull/${{ github.event.client_payload.command.resource.number }}

.github/workflows/send-crowdin-prs-to-boards.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
try {
2020
await github.projects.createCard({
2121
column_id: squadBoardColumnId,
22-
content_id: context.payload.issue.id,
23-
content_type: "Issue"
22+
content_id: context.payload.pull_request.id,
23+
content_type: "PullRequest"
2424
});
2525
} catch (error) {
2626
console.log(error);
@@ -30,8 +30,8 @@ jobs:
3030
try {
3131
await github.projects.createCard({
3232
column_id: prBoardColumnId,
33-
content_id: context.payload.issue.id,
34-
content_type: "Issue"
33+
content_id: context.payload.pull_request.id,
34+
content_type: "PullRequest"
3535
});
3636
} catch (error) {
3737
console.log(error);
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Send pull_request to How We Work Boards
2+
3+
# **What it does**: This sends pull requests with the feature label to the Docs Engineering feature board
4+
# **Why we have it**: If we use PRs to track features this automates them ending up on the feature board
5+
# **Who does it impact**: Docs Engineering team members
6+
7+
on:
8+
pull_request:
9+
types:
10+
- labeled
11+
- opened
12+
- reopened
13+
14+
jobs:
15+
triage:
16+
runs-on: ubuntu-latest
17+
continue-on-error: true
18+
steps:
19+
- if: (github.repository == 'github/docs-internal' || github.repository == 'github/docs') && (contains(github.event.pull_request.labels.*.name, 'engineering') && contains(github.event.pull_request.labels.*.name, 'feature'))
20+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
21+
with:
22+
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
23+
script: |
24+
// Only do this for work by the engineering folks since multiple teams do work
25+
// in the docs repos
26+
try {
27+
await github.teams.getMembershipForUserInOrg({
28+
org: 'github',
29+
team_slug: 'docs-engineering',
30+
username: context.payload.sender.login,
31+
});
32+
} catch(err) {
33+
return
34+
}
35+
36+
var column_id = 13445681;
37+
try {
38+
github.projects.createCard({
39+
column_id: column_id,
40+
content_id: context.payload.pull_request.id,
41+
content_type: "PullRequest"
42+
});
43+
} catch (error) {
44+
console.log(error);
45+
}

.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",

0 commit comments

Comments
 (0)