Skip to content

Commit 25f24eb

Browse files
authored
Merge branch 'main' into bassa846-patch-1-1
2 parents 50796a1 + 607067c commit 25f24eb

1,382 files changed

Lines changed: 17616 additions & 9104 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ package.json @github/docs-engineering
2121
/content/github/site-policy/ @github/site-policy-admins
2222

2323
# Content strategy
24-
/contributing/content-markup-reference.md @github/product-docs-content-strategy
25-
/contributing/content-style-guide.md @github/product-docs-content-strategy
24+
/contributing/content-markup-reference.md @github/docs-content-strategy
25+
/contributing/content-style-guide.md @github/docs-content-strategy
2626

2727
# Make sure that Octokit maintainers get notified about changes
2828
# relevant to the Octokit libraries (https://github.com/octokit)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Thanks again!
2121
<!-- Share artifacts of the changes, be they code snippets, GIFs or screenshots; whatever shares the most context. -->
2222

2323
### Check off the following:
24-
- [ ] All of the tests are passing.
2524
- [ ] I have reviewed my changes in staging. (look for the **deploy-to-heroku** link in your pull request, then click **View deployment**)
2625
- [ ] For content changes, I have reviewed the [localization checklist](https://github.com/github/docs/blob/main/contributing/localization-checklist.md)
2726
- [ ] For content changes, I have reviewed the [Content style guide for GitHub Docs](https://github.com/github/docs/blob/main/contributing/content-style-guide.md).

.github/allowed-actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = [
2525
'pascalgn/automerge-action@c9bd182',
2626
'peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326',
2727
'peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd',
28-
'peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8',
28+
'peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43',
2929
'rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9',
3030
'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e',
3131
'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88',

.github/workflows/remove-unused-assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Remove script results file
3434
run: rm -rf ./results.md
3535
- name: Create pull request
36-
uses: peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8
36+
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
3737
with:
3838
# need to use a token with repo and workflow scopes for this step
3939
token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}

.github/workflows/repo-sync-stalls.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
return
3737
}
3838
39+
// Remove all pull requests that don't have the
40+
// 'automated-reposync-pr' label
41+
pulls.data = pulls.data.filter(pr =>
42+
pr.labels.some(label => label.name === 'automated-reposync-pr')
43+
)
44+
45+
// Search for pull requests that have been open too long
3946
pulls.data.forEach(pr => {
4047
const timeDelta = Date.now() - Date.parse(pr.created_at);
4148
const minutesOpen = timeDelta / 1000 / 60;

.github/workflows/repo-sync.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
github_token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
4545

4646
- name: Create pull request
47+
id: create-pull
4748
uses: repo-sync/pull-request@33777245b1aace1a58c87a29c90321aa7a74bd7d
4849
env:
4950
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
@@ -70,6 +71,35 @@ jobs:
7071
github-token: ${{ secrets.GITHUB_TOKEN }}
7172
number: ${{ steps.find-pull-request.outputs.number }}
7273

74+
# There are cases where the branch becomes out-of-date in between the time this workflow began and when the pull request is created/updated
75+
- name: Update branch
76+
if: ${{ steps.find-pull-request.outputs.number }}
77+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
78+
with:
79+
github-token: ${{ secrets.GITHUB_TOKEN }}
80+
script: |
81+
const mainHeadSha = await github.git.getRef({
82+
...context.repo,
83+
ref: 'heads/main'
84+
})
85+
console.log(`heads/main sha: ${mainHeadSha.data.object.sha}`)
86+
87+
const pull = await github.pulls.get({
88+
...context.repo,
89+
pull_number: parseInt(${{ steps.find-pull-request.outputs.number }})
90+
})
91+
console.log(`Pull request base sha: ${pull.data.base.sha}`)
92+
93+
if (mainHeadSha.data.object.sha !== pull.data.base.sha || pull.data.mergeable_state === 'behind') {
94+
const updateBranch = await github.pulls.updateBranch({
95+
...context.repo,
96+
pull_number: parseInt(${{ steps.find-pull-request.outputs.number }})
97+
})
98+
console.log(updateBranch.data.message)
99+
} else {
100+
console.log(`Branch is already up-to-date`)
101+
}
102+
73103
- name: Send Slack notification if workflow fails
74104
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
75105
if: failure()

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ env:
1010

1111
on:
1212
workflow_dispatch:
13-
#schedule:
14-
#- cron: '20 16 * * *' # run every day at 16:20 UTC / 8:20 PST
13+
schedule:
14+
- cron: '20 16 * * *' # run every day at 16:20 UTC / 8:20 PST
1515

1616
jobs:
1717
update_graphql_files:
@@ -37,15 +37,15 @@ jobs:
3737
- name: Run updater scripts
3838
env:
3939
# need to use a token from a user with access to github/github for this step
40-
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
40+
GITHUB_TOKEN: ${{ secrets.RACHMARI_REPO_WORKFLOW }}
4141
run: |
4242
script/graphql/update-files.js
4343
- name: Create pull request
4444
id: create-pull-request
45-
uses: peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8
45+
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
4646
with:
4747
# need to use a token with repo and workflow scopes for this step
48-
token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
48+
token: ${{ secrets.GITHUB_TOKEN }}
4949
commit-message: 'Action ran graphql script"update-files"'
5050
title: GraphQL schema update
5151
body:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ We (usually the docs team, but sometimes GitHub product managers, engineers, or
152152
You should always review your own PR first.
153153

154154
For content changes, make sure that you:
155-
- [ ] Confirm that the changes address every part of the content strategy plan from your issue (if there are differences, explain them).
155+
- [ ] Confirm that the changes address every part of the content design plan from your issue (if there are differences, explain them).
156156
- [ ] Review the content for technical accuracy.
157157
- [ ] Review the entire pull request using the [localization checklist](contributing/localization-checklist.md).
158158
- [ ] Copy-edit the changes for grammar, spelling, and adherence to the style guide.

Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ GEM
1010

1111
PLATFORMS
1212
ruby
13+
x86_64-linux
1314

1415
DEPENDENCIES
1516
graphql (= 1.10.6)
1617
graphql-schema_comparator (~> 1.0.0)
1718

1819
BUNDLED WITH
19-
2.1.4
20+
2.2.1

app.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
"env": {
44
"NODE_ENV": "production",
55
"NPM_CONFIG_PRODUCTION": "true",
6-
"ENABLED_LANGUAGES": "en, de"
6+
"ENABLED_LANGUAGES": "en"
77
},
88
"buildpacks": [
9-
{ "url": "https://github.com/DataDog/heroku-buildpack-datadog.git#1.21" },
109
{ "url": "heroku/nodejs" }
1110
],
1211
"formation": {

0 commit comments

Comments
 (0)