Skip to content

Commit bdeb730

Browse files
authored
Merge branch 'main' into patch-1
2 parents 2c35bf7 + 536ba69 commit bdeb730

174 files changed

Lines changed: 7489 additions & 7495 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/confirm-internal-staff-work-in-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
owner: 'github',
6262
repo: 'docs-internal',
6363
title: `@${context.payload.sender.login} confirm that \#${issueNo} should be in the public github/docs repo`,
64-
body: `@${context.payload.sender.login} opened https://github.com/github/docs/issues/${issueNo} publicly in the github/docs repo, instead of the private github/docs-internal repo.\n\n@${context.payload.sender.login}, please confirm that this belongs in the public repo and that no sensitive information was disclosed by commenting below and closing the issue.\n\nIf this was not intentional and sensitive information was shared, please delete https://github.com/github/docs/issues/${issueNo} and notify us in the \#docs-open-source channel.\n\nThanks! \n\n/cc @github/docs @github/docs-engineering`
64+
body: `@${context.payload.sender.login} opened https://github.com/github/docs/issues/${issueNo} publicly in the github/docs repo, instead of the private github/docs-internal repo.\n\n@${context.payload.sender.login}, please confirm that this belongs in the public repo and that no sensitive information was disclosed by commenting below and closing the issue.\n\nIf this was not intentional and sensitive information was shared, please delete https://github.com/github/docs/issues/${issueNo} and notify us in the \#docs-open-source channel.\n\nThanks! \n\n/cc @github/docs @github/docs-engineering`,
65+
labels: ['OS confirmation'],
6566
});
6667
6768
core.setOutput('did_warn', 'true')
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Enterprise date updater
2+
3+
# **What it does**: Runs on a schedule to update lib/enterprise-dates.json.
4+
# **Why we have it**: The lib/enterprise-dates.json file needs to be up-to-date
5+
# for the .github/workflows/open-enterprise-issue.yml workflow and the
6+
# tests/content/algolia-search.js test.
7+
# **Who does it impact**: Docs engineering, docs content.
8+
9+
on:
10+
workflow_dispatch:
11+
schedule:
12+
- cron: '39 2 * * 2' # At 02:39 on Tuesday
13+
14+
# **IMPORTANT:** Do not change the FREEZE environment variable set here!
15+
# This workflow runs on a recurring basis. To temporarily disable it (e.g.,
16+
# during a docs deployment freeze), add an Actions Secret to the repo settings
17+
# called `FREEZE` with a value of `true`. To re-enable updates, simply
18+
# delete that Secret from the repo settings. The environment variable here
19+
# will duplicate that Secret's value for later evaluation.
20+
env:
21+
FREEZE: ${{ secrets.FREEZE }}
22+
23+
jobs:
24+
open_enterprise_issue:
25+
name: Enterprise date updater
26+
if: github.repository == 'github/docs-internal'
27+
runs-on: ubuntu-latest
28+
steps:
29+
- if: ${{ env.FREEZE == 'true' }}
30+
run: |
31+
echo 'The repo is currently frozen! Exiting this workflow.'
32+
exit 1 # prevents further steps from running
33+
34+
- name: Checkout repository code
35+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
36+
37+
- name: Install Node.js dependencies
38+
run: npm ci
39+
40+
- name: Run script/update-enterprise-dates.js
41+
run: |
42+
script/update-enterprise-dates.js
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Create pull request
47+
id: create-pull-request
48+
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
49+
with:
50+
# need to use a token with repo and workflow scopes for this step
51+
token: ${{ secrets.GITHUB_TOKEN }}
52+
commit-message: '🤖 ran script/update-enterprise-dates.js'
53+
title: 🤖 lib/enterprise-dates.json update
54+
body:
55+
"Hello! The GitHub Enterprise Server release dates have changed.\n\n
56+
If CI passes, this PR will be auto-merged. :green_heart:\n\n
57+
If CI does not pass or other problems arise, contact #docs-engineering on slack.\n\nThis PR was 🤖-crafted by `.github/workflows/enterprise-dates.yml`. 🧶"
58+
labels: automerge,autoupdate
59+
branch: enterprise-server-dates-update
60+
delete-branch: true
61+
62+
- if: ${{ failure() }}
63+
name: Delete remote branch (if previous steps failed)
64+
uses: dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911
65+
with:
66+
github_token: ${{ secrets.GITHUB_TOKEN }}
67+
branches: enterprise-server-dates-update
68+
69+
- if: ${{ steps.create-pull-request.outputs.pull-request-number }}
70+
name: Approve
71+
uses: juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8
72+
with:
73+
github-token: ${{ secrets.DOCUBOT_REPO_PAT }}
74+
number: ${{ steps.create-pull-request.outputs.pull-request-number }}
75+
76+
- name: Send Slack notification if workflow fails
77+
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
78+
if: failure()
79+
with:
80+
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
81+
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
82+
color: failure
83+
text: The last enterprise-dates run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions/workflows/enterprise-dates.yml

.github/workflows/ping-staging-apps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Ping staging apps
66

77
on:
88
schedule:
9-
- cron: '*/20 * * * *' # every twenty minutes
9+
- cron: '10,30,50 * * * *' # every twenty minutes
1010

1111
jobs:
1212
ping_staging_apps:
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Remove stale staging apps
2+
3+
# **What it does**:
4+
# This cleans up any rogue staging applications that outlasted the closure of
5+
# their corresponding pull requests.
6+
# **Why we have it**:
7+
# Staging applications sometimes fail to be destroyed when their corresponding
8+
# pull request is closed or merged.
9+
# **Who does it impact**:
10+
# Anyone with a closed, spammy, or deleted pull request in docs or docs-internal.
11+
12+
on:
13+
schedule:
14+
- cron: '15,45 * * * *' # every thirty minutes at :15 and :45
15+
16+
jobs:
17+
remove_stale_staging_apps:
18+
name: Remove stale staging apps
19+
if: ${{ github.repository == 'github/docs-internal' }}
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
23+
- name: npm ci
24+
run: npm ci
25+
- name: Run script
26+
run: script/remove-stale-staging-apps.js
27+
env:
28+
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
29+
GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}

.github/workflows/repo-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ name: Repo Sync
1818
on:
1919
workflow_dispatch:
2020
schedule:
21-
- cron: '*/15 * * * *' # every 15 minutes
21+
- cron: '10,25,40,55 * * * *' # every 15 minutes
2222

2323
jobs:
2424
close-invalid-repo-sync:

.github/workflows/send-issues-to-how-how-we-work-boards.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
continue-on-error: true
1818
steps:
19-
- if: (github.repository == 'github/docs-internal') && contains(github.event.issue.labels.*.name, 'engineering') && !contains(github.event.issue.labels.*.name, 'feature') && !contains(github.event.issue.labels.*.name, 'epic')
19+
- if: (github.repository == 'github/docs-internal') && contains(github.event.issue.labels.*.name, 'engineering') && !contains(github.event.issue.labels.*.name, 'batch') && !contains(github.event.issue.labels.*.name, 'epic')
2020
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
2121
with:
2222
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
@@ -31,7 +31,7 @@ jobs:
3131
} catch (error) {
3232
console.log(error);
3333
}
34-
- if: (github.repository == 'github/docs-internal') && contains(github.event.issue.labels.*.name, 'engineering') && contains(github.event.issue.labels.*.name, 'feature')
34+
- if: (github.repository == 'github/docs-internal') && contains(github.event.issue.labels.*.name, 'engineering') && contains(github.event.issue.labels.*.name, 'batch')
3535
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
3636
with:
3737
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}

.github/workflows/send-prs-to-how-how-we-work-boards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
continue-on-error: true
1818
steps:
19-
- if: (github.repository == 'github/docs-internal') && contains(github.event.pull_request.labels.*.name, 'feature')
19+
- if: (github.repository == 'github/docs-internal') && contains(github.event.pull_request.labels.*.name, 'batch')
2020
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
2121
with:
2222
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}

.github/workflows/test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
test-group: [content, graphql, meta, rendering, routing, unit]
26+
test-group: [content, graphql, meta, rendering, routing, unit, linting]
2727
steps:
2828
- name: Check out repo
2929
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
test-group: [content, graphql, meta, rendering, routing, unit]
28+
# The same array lives in test-windows.yml, so make any updates there too.
29+
test-group: [content, graphql, meta, rendering, routing, unit, linting]
2930
steps:
3031
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
3132
# Even if if doesn't do anything

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ jobs:
7979
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
8080
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
8181
color: failure
82-
text: The last update-graphql-files run for ${{github.repository}} failed. See https://github.com/github/${{github.repository}}/actions/workflows/update-graphql-files.yml
82+
text: The last update-graphql-files run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions/workflows/update-graphql-files.yml

0 commit comments

Comments
 (0)