Skip to content

Commit 19b1ae0

Browse files
authored
Merge branch 'main' into change-block-usersetting
2 parents 1de7d27 + 58dcbeb commit 19b1ae0

34,991 files changed

Lines changed: 935738 additions & 3484702 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.

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
babelOptions: { configFile: './.babelrc' },
1414
sourceType: 'module',
1515
},
16+
ignorePatterns: ['tmp/*'],
1617
rules: {
1718
'import/no-extraneous-dependencies': ['error', { packageDir: '.' }],
1819
},

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ See our [CONTRIBUTING.md](/main/CONTRIBUTING.md) for information how to contribu
55
66
For changes to content in [site policy](https://github.com/github/docs/tree/main/content/github/site-policy), see the [CONTRIBUTING guide in the site-policy repo](https://github.com/github/site-policy/blob/main/CONTRIBUTING.md).
77
8-
We cannot accept changes to our translated content right now. See the [contributing.md](/main/CONTRIBUTING.md#earth_asia-translations) for more information.
8+
We cannot accept changes to our translated content right now. See the [types-of-contributions.md](/main/contributing/types-of-contributions.md#earth_asia-translations) for more information.
99
1010
Thanks again!
1111
-->
@@ -14,7 +14,7 @@ Thanks again!
1414

1515
Closes [issue link]
1616

17-
<!--
17+
<!--
1818
- If there's an existing issue for your change, please link to it.
1919
- If there's _not_ an existing issue, please open one first to make it more likely that this update will be accepted: https://github.com/github/docs/issues/new/choose. -->
2020

@@ -24,7 +24,7 @@ Closes [issue link]
2424

2525
### Check off the following:
2626

27-
- [ ] I have reviewed my changes in staging (look for the latest deployment event in your pull request's timeline, then click **View deployment**).
27+
- [ ] I have reviewed my changes in staging (look for "Automatically generated comment" and click **Modified** to view your latest changes).
2828
- [ ] For content changes, I have completed the [self-review checklist](https://github.com/github/docs/blob/main/contributing/self-review.md#self-review).
2929

3030
### Writer impact (This section is for GitHub staff members only):

.github/actions-scripts/create-enterprise-issue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function run() {
8686
'utf8'
8787
)
8888
const issueLabels =
89-
milestone === 'release' ? ['enterprise release'] : ['enterprise deprecation', 'priority-3']
89+
milestone === 'release' ? ['enterprise release'] : ['enterprise deprecation', 'priority-4', 'batch', 'time sensitive']
9090
const issueTitle = `[${nextMilestoneDate}] Enterprise Server ${versionNumber} ${milestone} (technical steps)`
9191

9292
const issueBody = `GHES ${versionNumber} ${milestone} occurs on ${nextMilestoneDate}.

.github/actions-scripts/enterprise-server-issue-templates/deprecation-issue.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The day after a GHES version's [deprecation date](https://github.com/github/docs
3535
3636
## Step 3: Commit and push changes to help-docs-archived-enterprise-versions repo
3737
38+
- [ ] Search for `site-search-input` in the compressed Javascript files. When you find it, use something like https://beautifier.io/ to reformat it to be readable. Find `site-search-input` in the file, there will be something like... `1125: function () { return [SearchReactComponent] },` Delete the innards of this function, but leave the `function() {}` part.
3839
- [ ] In your archival checkout, `git add <version>`, commit, and push.
3940
- [ ] Open a PR and merge it in. Note that the version will _not_ be deprecated on the docs site until you do the next step.
4041
@@ -47,12 +48,15 @@ In your `docs-internal` checkout:
4748
- [ ] Tests are passing.
4849
- [ ] The deprecated version renders on staging as expected. You should be able to navigate to docs.github.com/enterprise/<DEPRECATED VERSION> to access the docs. You should also be able to navigate to a page that is available in the deprecated version and change the version in the URL to the deprecated version, to test redirects.
4950
- [ ] The new oldest supported version renders on staging as expected. You should see a banner on the top of every page for the oldest supported version that notes when the version will be deprecated.
51+
52+
You may need to include the changes in step 6 to get tests to pass.
5053
5154
## Step 5: Remove static files for the version
5255
5356
- [ ] In your `docs-internal` checkout, from your `remove-<version>-static-files` branch: `git checkout -b remove-<version>-static-files`
5457
- [ ] Run `script/enterprise-server-deprecations/remove-static-files.js` and commit results.
5558
- [ ] Run `script/enterprise-server-deprecations/remove-redirects.js` and commit results.
59+
- [ ] `lib/rest/static` directory has deferenced and decorated directory underneath, remove the numbered version and all below from the list
5660
- [ ] Open a new PR.
5761
- [ ] Get a review from docs-engineering and merge. This step can be merged independently from step 6. The purpose of splitting up steps 5 and 6 is to focus the review on specific files.
5862
@@ -66,3 +70,8 @@ In your `docs-internal` checkout:
6670
- [ ] Debug any test failures or unexpected results.
6771
- [ ] When the PR is approved, merge it in to complete the deprecation. This can be merged independently from step 5.
6872
73+
## Step 7: Deprecate the OpenAPI description in `github/github`
74+
75+
- [ ] In `github/github`, edit the release's config file in `app/api/description/config/releases/`, and change `deprecated: false` to `deprecated: true`.
76+
- [ ] Open a new PR, and get the required code owner approvals. A docs-content team member can approve it for the docs team.
77+
- [ ] When the PR is approved, merge the `github/github` PR.

.github/actions-scripts/projects.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,13 @@ export function generateUpdateProjectNextItemFieldMutation({
164164
function generateMutationToUpdateField({ item, fieldID, value, literal = false }) {
165165
const parsedValue = literal ? `value: "${value}"` : `value: ${value}`
166166

167-
// Strip "=" out of the item ID when creating the mutation ID to avoid a GraphQL parsing error
167+
// Strip all non-alphanumeric out of the item ID when creating the mutation ID to avoid a GraphQL parsing error
168168
// (statistically, this should still give us a unique mutation ID)
169169
return `
170-
set_${fieldID.substr(1)}_item_${item.replaceAll('=', '')}: updateProjectNextItemField(input: {
170+
set_${fieldID.substr(1)}_item_${item.replaceAll(
171+
/[^a-z0-9]/g,
172+
''
173+
)}: updateProjectNextItemField(input: {
171174
projectId: $project
172175
itemId: "${item}"
173176
fieldId: ${fieldID}

.github/allowed-actions.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
// can be added it this list.
55

66
export default [
7-
'actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f', // v2.3.4
7+
'actions/checkout@1e204e9a9253d643386038d443f96446fa156a97', // v2.3.5
88
'actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d', // v4.0.2
99
'actions/labeler@5f867a63be70efff62b767459b009290364495eb', // v2.2.0
10-
'actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f', // v2.2.0
11-
'actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da', // v3.0.16
10+
'actions/setup-node@270253e841af726300e85d718a5f606959b2903c', // v2.4.1
11+
'actions/stale@cdf15f641adb27a71842045a94023bef6945e3aa', // v4.0.0
1212
'actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074', // v2.2.4
13-
'alex-page/github-project-automation-plus@fdb7991b72040d611e1123d2b75ff10eda9372c9',
14-
'andymckay/labeler@22d5392de2b725cea4b284df5824125054049d84',
15-
'crowdin/github-action@d7f217268068f1244883a993379d62d816f84f25', // v1.4.0
16-
'crykn/copy_folder_to_another_repo_action@0282e8b9fef06de92ddcae9fe6cb44df6226646c',
13+
'alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488', // v0.8.1
14+
'andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90', // v1.0.4
15+
'crowdin/github-action@d0622816ed4f4744db27d04374b2cef6867f7bed', // v1.4.1
1716
'cschleiden/actions-linter@caffd707beda4fc6083926a3dff48444bc7c24aa', // uses github-actions-parser v0.23.0
1817
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911', // v3.0.2
1918
'dawidd6/action-download-artifact@af92a8455a59214b7b932932f2662fdefbd78126', // v2.15.0
@@ -28,14 +27,13 @@ export default [
2827
'pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07', // v0.12.0
2928
'peter-evans/create-issue-from-file@b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e',
3029
'peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd',
31-
'peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43',
32-
'peter-evans/find-comment@0da1f4fc1f20cd898368bd56089d391df418f52f',
30+
'peter-evans/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad', // v3.10.1
31+
'peter-evans/find-comment@d2dae40ed151c634e4189471272b57e76ec19ba8', // v1.3.0
3332
'rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9',
34-
'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e',
3533
'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88',
36-
'repo-sync/pull-request@33777245b1aace1a58c87a29c90321aa7a74bd7d',
37-
'someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd',
38-
'tjenkinson/gh-action-auto-merge-dependency-updates@4d7756c04d9d999c5968697a621b81c47f533d61',
34+
'repo-sync/pull-request@65194d8015be7624d231796ddee1cd52a5023cb3', // v2.6
35+
'someimportantcompany/github-actions-slack-message@f8d28715e7b8a4717047d23f48c39827cacad340', // v1.2.2
36+
'tjenkinson/gh-action-auto-merge-dependency-updates@c47f6255e06f36e84201ee940466e731ffa6e885', // v1.1.1
3937
'Bhacaz/checkout-files@c8f01756bfd894ba746d5bf48205e19000b0742b', // v1.0.0
4038
'EndBug/add-and-commit@2bdc0a61a03738a1d1bda24d566ad0dbe3083d87',
4139
]

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ updates:
33
- package-ecosystem: npm
44
directory: '/'
55
schedule:
6-
interval: weekly
6+
interval: monthly
77
open-pull-requests-limit: 20 # default is 5
88

99
- package-ecosystem: 'github-actions'
1010
directory: '/'
1111
schedule:
12-
interval: weekly
12+
interval: monthly

.github/workflows/60-days-stale-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da
16+
- uses: actions/stale@cdf15f641adb27a71842045a94023bef6945e3aa
1717
with:
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
1919
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.'
@@ -24,4 +24,4 @@ jobs:
2424
stale-issue-label: 'stale'
2525
stale-pr-label: 'stale'
2626
exempt-pr-labels: 'never-stale'
27-
exempt-issue-labels: 'never-stale'
27+
exempt-issue-labels: 'never-stale,help wanted,waiting for review'

.github/workflows/automerge-dependencies.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: Auto Merge Dependency Updates
99
# **Who does it impact**: It helps docs engineering focus on higher value work.
1010

1111
on:
12-
pull_request:
12+
pull_request_target:
1313
paths:
1414
- 'package*.json'
1515
- 'Gemfile*'
@@ -36,7 +36,7 @@ jobs:
3636
}}
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: tjenkinson/gh-action-auto-merge-dependency-updates@4d7756c04d9d999c5968697a621b81c47f533d61
39+
- uses: tjenkinson/gh-action-auto-merge-dependency-updates@c47f6255e06f36e84201ee940466e731ffa6e885
4040
with:
4141
repo-token: ${{ secrets.GITHUB_TOKEN }}
4242
allowed-actors: dependabot[bot]
@@ -52,10 +52,35 @@ jobs:
5252
}}
5353
runs-on: ubuntu-latest
5454
steps:
55-
- name: Close and comment on the pull request
55+
- name: Close pull request
5656
env:
5757
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858
PR_URL: ${{ github.event.pull_request.html_url }}
5959
run: |
6060
gh pr close "$PR_URL"
61+
62+
- name: Comment on the pull request
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
PR_URL: ${{ github.event.pull_request.html_url }}
66+
run: |
6167
gh pr comment "$PR_URL" --body "This dependency update will be handled internally by our engineering team."
68+
69+
# Because we get far too much spam ;_;
70+
- name: Lock conversations
71+
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
72+
env:
73+
PR_NUMBER: ${{ github.event.pull_request.number }}
74+
with:
75+
script: |
76+
try {
77+
await github.issues.lock({
78+
...context.repo,
79+
issue_number: parseInt(process.env.PR_NUMBER, 10),
80+
lock_reason: 'resolved'
81+
})
82+
console.log('Locked the pull request to prevent spam!')
83+
} catch (error) {
84+
console.error(`Failed to lock the pull request. Error: ${error}`)
85+
throw error
86+
}

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: automerge
1+
name: Automerge
22

33
# **What it does**: Pull requests with label "automerge" or "autosquash" will automatically merge.
44
# **Why we have it**: While now this is a feature built into GitHub, we still use it as part of other automation.

0 commit comments

Comments
 (0)