Skip to content

Commit 969aae8

Browse files
authored
Merge branch 'main' into jules-4798
2 parents dac7f94 + 25d895b commit 969aae8

File tree

1,173 files changed

+660146
-7790
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,173 files changed

+660146
-7790
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ This file should be automatically updated, but you can also run `script/update-e
116116
Use admin permissions to ship the release branch with this failure. Make sure that the merge's commit title does not include anything like `[DO NOT MERGE]`, and remove all the branch's commit details from the merge's commit message except for the co-author list.
117117
- [ ] Do any required smoke tests listed in the opening post in the megabranch PR.
118118
- [ ] Once smoke tests have passed, you can [unfreeze the repos](https://github.com/github/docs-content/blob/main/docs-content-docs/docs-content-workflows/freezing.md) and post an announcement in Slack.
119-
- [ ] After unfreezing, push the search index LFS objects for the public `github/docs` repo. The LFS objects were already being pushed for the internal repo after the `sync-english-index-for-<PLAN@RELEASE>` was added to the megabranch. To push the LFS objects, run the [search sync workflow](https://github.com/github/docs-internal/actions/workflows/sync-search-indices.yml) with the following inputs:
119+
- [ ] After unfreezing, push the search index LFS objects for the public `github/docs` repo. The LFS objects were already being pushed for the internal repo after the `sync-english-index-for-<PLAN@RELEASE>` was added to the megabranch. To push the LFS objects, run the [search sync workflow](https://github.com/github/docs-internal/actions/workflows/sync-search-indices.yml). Once you're there, click on `Run workflow` button. A modal will pop up where you can set the following inputs:
120+
Branch: The new version megabranch you're working on
120121
version: `enterprise-server@<RELEASE>`
121122
language: `en`
122123
- [ ] After unfreezing, if there were significant or highlighted GraphQL changes in the release, consider manually running the [GraphQL update workflow](https://github.com/github/docs-internal/actions/workflows/update-graphql-files.yml) to update our GraphQL schemas. By default this workflow only runs once every 24 hours.

.github/actions-scripts/openapi-schema-branch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const changedFiles = execSync('git diff --name-only HEAD').toString()
3636
if (changedFiles !== '') {
3737
console.log(`These files were changed:\n${changedFiles}`)
3838
console.log(
39-
`🚧⚠️ Your decorated and dereferenced schema files don't match. Ensure you're using decorated and dereferenced schemas from the automatically created pull requests by the 'github-openapi-bot' user. \n\n If this test is failing after updates to the script/rest directory, run script/rest/update-files.js --decorate-only to re-generate the decorated files from the existing dereferenced files and check those in. \n\n If this test is failing after an update to a package, check the changes the new package makes to the decorated files by running script/rest/update-files.js --decorate-only. If the changes are small style changes that don't impact the overall experience, check the updated decorated file in. Otherwise, more work may be needed to be compatible with the updated package. \n\n For more information, see 'script/rest/README.md'. 🛑`
39+
`🚧⚠️ Your decorated and dereferenced schema files don't match. Ensure you're using decorated and dereferenced schemas from the automatically created pull requests by the 'github-openapi-bot' user. \n\n If this test is failing after updates to the script/rest directory, run script/rest/update-files.js --decorate-only to re-generate the decorated files from the existing dereferenced files and check those in. \n\n If this test is failing after an update to a package, check the changes the new package makes to the decorated files by running script/rest/update-files.js --decorate-only.\n\nIf you updated script/rest/utils/rest-api-overrides.json, you'll need to run script/rest/update-files.js --decorate-only to regenerate the decorated file and redirects file (check in the changed lib/rest/static/decorated files).\n\nIf the changes are small style changes that don't impact the overall experience, check the updated decorated file in. Otherwise, more work may be needed to be compatible with the updated package. \n\n For more information, see 'script/rest/README.md'. 🛑`
4040
)
4141
process.exit(1)
4242
}

.github/dependabot.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ updates:
33
- package-ecosystem: npm
44
directory: '/'
55
schedule:
6-
interval: monthly
6+
interval: weekly
7+
day: tuesday
78
open-pull-requests-limit: 20 # default is 5
89
ignore:
910
- dependency-name: '*'
@@ -13,7 +14,8 @@ updates:
1314
- package-ecosystem: 'github-actions'
1415
directory: '/'
1516
schedule:
16-
interval: monthly
17+
interval: weekly
18+
day: wednesday
1719
ignore:
1820
- dependency-name: '*'
1921
update-types:
@@ -22,7 +24,8 @@ updates:
2224
- package-ecosystem: 'docker'
2325
directory: '/'
2426
schedule:
25-
interval: monthly
27+
interval: weekly
28+
day: thursday
2629
ignore:
2730
- dependency-name: '*'
2831
update-types:

.github/workflows/enterprise-release-sync-search-index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
name: Update English index for new GHES release
4141
# Skip this check if the event originated from Docubot, to prevent
4242
# infinite runs when Docubot checks in the search indexes in this workflow
43-
if: github.repository == 'github/docs-internal' && github.event.sender.login != 'Docubot'
43+
if: github.repository == 'github/docs-internal' && github.event.sender.login != 'Docubot' && github.actor != 'dependabot[bot]'
4444
runs-on: ubuntu-latest
4545
steps:
4646
- name: checkout

.github/workflows/first-responder-docs-content.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
jobs:
2020
first-responder-triage-pr:
2121
name: Triage PR to FR project board
22-
if: github.repository == 'github/docs-internal' && github.event.pull_request.draft == false && github.event.action != 'unlabeled' && github.event.action != 'closed'
22+
if: github.repository == 'github/docs-internal' && github.event.pull_request.draft == false && github.event.action != 'unlabeled' && github.event.action != 'closed' && github.actor != 'dependabot[bot]'
2323
runs-on: ubuntu-latest
2424

2525
steps:
@@ -66,7 +66,7 @@ jobs:
6666

6767
first-responder-remove-pr:
6868
name: Remove PR from FR project board
69-
if: github.repository == 'github/docs-internal' && ((github.event.label.name == 'docs-content-fr' && github.event.action == 'unlabeled') || github.event.action == 'closed')
69+
if: github.repository == 'github/docs-internal' && ((github.event.label.name == 'docs-content-fr' && github.event.action == 'unlabeled') || github.event.action == 'closed') && github.actor != 'dependabot[bot]'
7070
runs-on: ubuntu-latest
7171

7272
steps:

.github/workflows/hubber-contribution-help.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
gh pr comment $PR --body "Thanks so much for opening this PR and contributing to GitHub Docs!
4343
44-
- When you're ready for the Docs team to review this PR, request a review by *docs-content* and your PR will be added to the [Docs Content review board](https://github.com/orgs/github/memexes/901?layout=table&groupedBy%5BcolumnId%5D=11024). **Please factor in at least 72 hours for a review, even longer if this is a substantial change.**
44+
- When you're ready for the Docs team to review this PR, add the *ready-for-doc-review* label to your PR to the [Docs Content review board](https://github.com/orgs/github/memexes/901?layout=table&groupedBy%5BcolumnId%5D=11024). **Please factor in at least 72 hours for a review, even longer if this is a substantial change.**
4545
- If this is a major update to the docs, you might want to go back and open an [issue](https://github.com/github/docs-content/issues/new/choose) to ensure we've covered all areas of the docs in these updates. Not doing so may result in delays or inaccurate documentation."
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/optimize-images.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,47 @@ name: Optimize images
66

77
on:
88
workflow_dispatch:
9-
schedule:
10-
- cron: '45 17 * * 2' # Run Tuesdays at 17:45 UTC / 9:45 PST
9+
pull_request:
10+
paths:
11+
- '**/*.png'
1112

1213
permissions:
1314
contents: write
1415
pull-requests: write
1516

1617
jobs:
17-
optimize-images:
18-
if: github.repository == 'github/docs-internal'
18+
optimize-images-on-pr:
19+
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
1920
runs-on: ubuntu-latest
2021
steps:
21-
- name: Check out repo
22+
- name: Check out repo on head ref
2223
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
24+
with:
25+
ref: ${{ github.head_ref }}
26+
27+
- name: Check out base ref
28+
run: git fetch --no-tags --depth=1 origin $GITHUB_BASE_REF
2329

2430
- name: Install the Optipng package
2531
run: sudo apt-get update && sudo apt-get -y install optipng
2632

27-
- name: Run the Optipng package
28-
run: find . -name '*.png' -print0 | xargs -0 optipng -nx
33+
- name: Run optipng on new or changed images
34+
run: |
35+
set -e # exit when any command fails
36+
37+
echo "Ensure we can view $GITHUB_BASE_REF"
38+
git checkout $GITHUB_BASE_REF
39+
40+
echo "Ensure we can view $GITHUB_HEAD_REF"
41+
git checkout $GITHUB_HEAD_REF
2942
30-
- name: Make a branch, commit, push, and pull request
43+
echo "List the files that changed"
44+
git diff --name-only $GITHUB_HEAD_REF $GITHUB_BASE_REF
45+
46+
echo "Run optipng on pngs in from the diff"
47+
git diff --name-only -z $GITHUB_HEAD_REF $GITHUB_BASE_REF -- '*.png' | xargs -0 optipng -nx
48+
49+
- name: Make a commit and a push
3150
run: |
3251
echo "If there's no changes, exit"
3352
if [[ ! `git status --porcelain` ]]
@@ -36,20 +55,13 @@ jobs:
3655
exit 0
3756
fi
3857
39-
echo "Make a new branch"
40-
BRANCH="optimize-images-$(date +'%Y%m%d%H%M%S')"
41-
git checkout -b $BRANCH
42-
4358
echo "Make a commit"
4459
git config user.name github-actions
4560
git config user.email [email protected]
4661
git add "*.png"
4762
git commit --message="Optimize images"
4863
4964
echo "Push up changes"
50-
git push --set-upstream origin $BRANCH
51-
52-
echo "Open a pull request"
53-
gh pr create --title "Optimize images" --body "Optimize images"
65+
git push
5466
env:
5567
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sync-search-indices.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ jobs:
112112
run: |
113113
echo 'git remote add public-docs-repo https://github.com/github/docs.git'
114114
git remote add public-docs-repo https://github.com/github/docs.git
115-
echo 'git lfs push --all public-docs-repo'
116-
git lfs push --all public-docs-repo
115+
echo 'GIT_TRANSFER_TRACE=1 GIT_CURL_VERBOSE=1 GIT_TRACE=1 git lfs push --all public-docs-repo'
116+
GIT_TRANSFER_TRACE=1 GIT_CURL_VERBOSE=1 GIT_TRACE=1 git lfs push --all public-docs-repo
117117
118118
- name: Send slack notification if workflow run fails
119119
uses: someimportantcompany/github-actions-slack-message@f8d28715e7b8a4717047d23f48c39827cacad340

.github/workflows/triage-unallowed-contributions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
- 'package*.json'
2222
- 'script/**'
2323
- 'translations/**'
24+
- 'content/actions/deployment/security-hardening-your-deployments/**'
2425

2526
permissions:
2627
pull-requests: write
@@ -67,6 +68,7 @@ jobs:
6768
- 'package*.json'
6869
- 'scripts/**'
6970
- 'translations/**'
71+
- 'content/actions/deployment/security-hardening-your-deployments/**'
7072
7173
# When there are changes to files we can't accept, leave a comment
7274
# explaining this to the PR author
@@ -90,6 +92,7 @@ jobs:
9092
'package*.json',
9193
'scripts/**',
9294
'translations/**',
95+
'content/actions/deployment/security-hardening-your-deployments/**',
9396
]
9497
9598
const badFiles = badFilesArr.join('\n')
12.9 KB
Loading

0 commit comments

Comments
 (0)