Skip to content

Commit 6a359d3

Browse files
authored
Merge branch 'main' into gk/fix_deafult_perms_line_apps
2 parents 2f9d8d9 + c72722b commit 6a359d3

820 files changed

Lines changed: 114476 additions & 54976 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/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*.js @github/docs-engineering
88
/.github/ @github/docs-engineering
99
/script/ @github/docs-engineering
10+
/includes/ @github/docs-engineering
11+
/layouts/ @github/docs-engineering
1012
app.json @github/docs-engineering
1113
Dockerfile @github/docs-engineering
1214
package-lock.json @github/docs-engineering
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Status Update
3+
about: A brief status update.
4+
body:
5+
- type: dropdown
6+
attributes:
7+
name: Status
8+
options:
9+
- name: "GREEN \U0001F34F (All good, smooth sailing)"
10+
value: 'Status: GREEN'
11+
- name: "YELLOW \U0001F7E1 (On track, with hurdles to work through)"
12+
value: 'Status: YELLOW'
13+
- name: "RED \U0001F534 (BLOCKED)"
14+
value: 'Status: RED'
15+
- type: input
16+
attributes:
17+
name: Update Summary
18+
placeholder:
19+
Brief summary of the status and next steps. Any blockers should be
20+
called out specifically.
21+
inputType: longText
22+
- type: input
23+
attributes:
24+
name: 'Attribution'
25+
value: '_created with :heart: by typing_ `/status`'
26+
inputType: text

.github/allowed-actions.js

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,39 @@
44
// can be added it this list.
55

66
module.exports = [
7-
'actions/cache@0781355a23dac32fd3bac414512f4b903437991a', //actions/cache@v2.1.3
8-
'actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f', //actions/checkout@v2.3.4
9-
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9', //actions/script@v3.0.0
10-
'actions/labeler@5f867a63be70efff62b767459b009290364495eb', //actions/labeler@v2.2.0
11-
'actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e', //actions/setup-node@v2.1.4
12-
'ruby/setup-ruby@fdcfbcf14ec9672f6f615cb9589a1bc5dd69d262', //ruby/setup-ruby@vv1.64.1
13-
'actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da', //actions/stale@v3.0.16
14-
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
15-
'crykn/copy_folder_to_another_repo_action@0282e8b9fef06de92ddcae9fe6cb44df6226646c',
16-
'cschleiden/actions-linter@0ff16d6ac5103cca6c92e6cbc922b646baaea5be',
17-
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
18-
'docker://chinthakagodawita/autoupdate-action:v1',
19-
'fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289',
20-
'github/codeql-action/analyze@v1',
21-
'github/codeql-action/init@v1',
22-
'ianwalter/puppeteer-container@2466ba8ecf689ccf4e5dfadeff3ac2db227b2e17',
23-
'juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8',
24-
'juliangruber/find-pull-request-action@2fc55e82a6d5d36fe1e7f1848f7e64fd02d99de9',
25-
'juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512',
26-
'lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8',
27-
'pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07', //pascalgn/automerge@0.12.0
28-
'peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326',
29-
'peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd',
30-
'peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43',
31-
'rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9',
32-
'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e',
33-
'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88',
34-
'repo-sync/pull-request@33777245b1aace1a58c87a29c90321aa7a74bd7d',
35-
'someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd',
36-
'tjenkinson/gh-action-auto-merge-dependency-updates@4d7756c04d9d999c5968697a621b81c47f533d61',
37-
'EndBug/add-and-commit@9358097a71ad9fb9e2f9624c6098c89193d83575',
38-
'dorny/paths-filter@eb75a1edc117d3756a18ef89958ee59f9500ba58'
39-
]
7+
"actions/cache@0781355a23dac32fd3bac414512f4b903437991a", //actions/cache@v2.1.3
8+
"actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f", //actions/checkout@v2.3.4
9+
"actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9", //actions/script@v3.0.0
10+
"actions/labeler@5f867a63be70efff62b767459b009290364495eb", //actions/labeler@v2.2.0
11+
"actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e", //actions/setup-node@v2.1.4
12+
"ruby/setup-ruby@fdcfbcf14ec9672f6f615cb9589a1bc5dd69d262", //ruby/setup-ruby@vv1.64.1
13+
"actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da", //actions/stale@v3.0.16
14+
"archive/github-actions-slack@d368c5a4ad757515a9344918f84c490b05777d94",
15+
"ashley-taylor/regex-property-action@93a24f845cd20790924208225cc72da8b4c6d46d",
16+
"crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688",
17+
"crykn/copy_folder_to_another_repo_action@0282e8b9fef06de92ddcae9fe6cb44df6226646c",
18+
"cschleiden/actions-linter@0ff16d6ac5103cca6c92e6cbc922b646baaea5be",
19+
"dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911",
20+
"docker://chinthakagodawita/autoupdate-action:v1",
21+
"fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289",
22+
"github/codeql-action/analyze@v1",
23+
"github/codeql-action/init@v1",
24+
"juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8",
25+
"juliangruber/find-pull-request-action@2fc55e82a6d5d36fe1e7f1848f7e64fd02d99de9",
26+
"juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512",
27+
"lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8",
28+
"octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2",
29+
"pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07", //pascalgn/automerge@0.12.0
30+
"peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326",
31+
"peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd",
32+
"peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43",
33+
"rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9",
34+
"rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e",
35+
"rachmari/puppeteer-container@6d56d6e132a3df76cf60bc290a4282f7fbaed05e",
36+
"repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88",
37+
"repo-sync/pull-request@33777245b1aace1a58c87a29c90321aa7a74bd7d",
38+
"someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd",
39+
"tjenkinson/gh-action-auto-merge-dependency-updates@4d7756c04d9d999c5968697a621b81c47f533d61",
40+
"EndBug/add-and-commit@9358097a71ad9fb9e2f9624c6098c89193d83575",
41+
"dorny/paths-filter@eb75a1edc117d3756a18ef89958ee59f9500ba58",
42+
];

.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/autoupdate-branch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ on:
1717
push:
1818
branches:
1919
- main
20+
schedule:
21+
- cron: '*/30 * * * *' # every 30 minutes
2022

2123
jobs:
2224
autoupdate:

.github/workflows/browser-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ jobs:
3939

4040
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
4141
name: Install
42-
uses: ianwalter/puppeteer-container@2466ba8ecf689ccf4e5dfadeff3ac2db227b2e17
42+
uses: rachmari/puppeteer-container@6d56d6e132a3df76cf60bc290a4282f7fbaed05e
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
48-
uses: ianwalter/puppeteer-container@2466ba8ecf689ccf4e5dfadeff3ac2db227b2e17
49+
timeout-minutes: 10
50+
uses: rachmari/puppeteer-container@6d56d6e132a3df76cf60bc290a4282f7fbaed05e
4951
with:
5052
args: npm run browser-test

.github/workflows/merged-notification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
github.issues.createComment({
1616
...context.repo,
1717
issue_number: context.payload.pull_request.number,
18-
body: 'Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our [help wanted issues](https://github.com/github/docs/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) :zap:'
18+
body: "Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our [help wanted issues](https://github.com/github/docs/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) :zap:"
1919
})
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Epic Status Update
2+
on:
3+
issue_comment:
4+
types: [created]
5+
jobs:
6+
post-status-updates-to-slack:
7+
runs-on: ubuntu-latest
8+
if: contains(github.event.comment.body, '_created with') && contains(github.event.comment.body, 'typing_ `/status`')
9+
steps:
10+
- name: Trim HTML comments
11+
id: trimmed
12+
uses: ashley-taylor/regex-property-action@93a24f845cd20790924208225cc72da8b4c6d46d
13+
with:
14+
value: ${{github.event.comment.body}}
15+
regex: '<!--(.*?)-->'
16+
replacement: ''
17+
- name: Send Slack notification
18+
uses: archive/github-actions-slack@d368c5a4ad757515a9344918f84c490b05777d94
19+
id: notify
20+
with:
21+
slack-channel: 'C01EEKVR0Q7'
22+
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_TOKEN }}
23+
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' }}
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

0 commit comments

Comments
 (0)