Skip to content

Commit bee3386

Browse files
authored
Merge branch 'main' into patch-1
2 parents d202bde + d3fd99f commit bee3386

740 files changed

Lines changed: 84733 additions & 45137 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = [
2626
"juliangruber/find-pull-request-action@2fc55e82a6d5d36fe1e7f1848f7e64fd02d99de9",
2727
"juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512",
2828
"lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8",
29+
"octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2",
2930
"pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07", //pascalgn/automerge@0.12.0
3031
"peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326",
3132
"peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd",

.github/commands/remove.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
trigger: remove-from-fr-board
2+
title: Remove from FR board
3+
description: Remove the current issue or pull request from the project board for the docs content first responder
4+
surfaces:
5+
- issue
6+
- pull_request
7+
- discussion
8+
steps:
9+
- type: repository_dispatch
10+
eventType: remove_from_FR_board

.github/workflows/browser-test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Browser Tests
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
8-
pull_request:
5+
# push:
6+
# branches:
7+
# - main
8+
# pull_request:
99

1010
jobs:
1111
see_if_should_skip:
@@ -40,11 +40,13 @@ jobs:
4040
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
4141
name: Install
4242
uses: ianwalter/puppeteer-container@2466ba8ecf689ccf4e5dfadeff3ac2db227b2e17
43+
timeout-minutes: 5
4344
with:
4445
args: npm ci
4546

4647
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
4748
name: Test
49+
timeout-minutes: 10
4850
uses: ianwalter/puppeteer-container@2466ba8ecf689ccf4e5dfadeff3ac2db227b2e17
4951
with:
5052
args: npm run browser-test

.github/workflows/post-status-updates-to-slack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
id: notify
2020
with:
2121
slack-channel: 'C01EEKVR0Q7'
22-
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
22+
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_TOKEN }}
2323
slack-text: \n><${{ github.event.comment.html_url}}|*${{github.event.issue.title}}*>\nstatus update posted by ${{github.event.comment.user.login}}\n\n${{ steps.trimmed.outputs.value }}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Remove card from FR board
2+
3+
on:
4+
repository_dispatch:
5+
types: remove_from_FR_board
6+
7+
jobs:
8+
remove_from_FR_board:
9+
if: github.repository == 'github/docs-internal'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- id: find_project_cards
13+
uses: octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2
14+
with:
15+
query: |
16+
query($issue_node_id:ID!) {
17+
node(id:$issue_node_id) {
18+
... on Issue {
19+
projectCards(first: 10) {
20+
nodes {
21+
id
22+
project {
23+
name
24+
id
25+
}
26+
}
27+
}
28+
}
29+
... on PullRequest {
30+
projectCards(first: 10) {
31+
nodes {
32+
id
33+
project {
34+
name
35+
id
36+
}
37+
}
38+
}
39+
}
40+
}
41+
}
42+
issue_node_id: ${{ github.event.client_payload.command.resource.id }}
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
45+
46+
- run: "echo 'Project cards found: ${{ steps.find_project_cards.outputs.data }}'"
47+
48+
- name: Get FR card
49+
env:
50+
QUERY_DATA: ${{ steps.find_project_cards.outputs.data }}
51+
run: |
52+
echo 'FR_CARDS='$(jq '.node.projectCards.nodes | .[] | select(.project.id == "MDc6UHJvamVjdDQ1NzI0ODI=") | .id' <<< "$QUERY_DATA") >> $GITHUB_ENV
53+
54+
- name: Delete card
55+
id: delete_project_card
56+
if: ${{ env.FR_CARDS }}
57+
uses: octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2
58+
with:
59+
query: |
60+
mutation DeleteCard {
61+
deleteProjectCard(input:{cardId:${{ env.FR_CARDS }}}) {deletedCardId}
62+
}
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}

.github/workflows/repo-freeze-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Fail if repo merges are paused
25-
if: ${{ env.FREEZE == 'true' && github.ref != 'refs/heads/repo-sync' }}
25+
if: ${{ env.FREEZE == 'true' && github.head_ref != 'repo-sync' }}
2626
run: |
2727
echo 'Merges into the "main" branch on this repo are currently paused!'
2828
exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
triage_pulls:
10-
if: github.repository == 'github/docs'
10+
if: github.repository != 'github/docs-internal'
1111
runs-on: ubuntu-latest
1212

1313
steps:

.github/workflows/update-graphql-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
If CI does not pass or other problems arise, contact #docs-engineering on slack."
5757
labels: automerge,autoupdate
5858
branch: graphql-schema-update
59-
- if: ${{ failure() }}
59+
- if: ${{ failure() && env.FREEZE != 'true'}}
6060
name: Delete remote branch (if previous steps failed)
6161
uses: dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911
6262
with:
61.4 KB
35.9 KB

0 commit comments

Comments
 (0)