-
Notifications
You must be signed in to change notification settings - Fork 60.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36018 from github/repo-sync
Repo sync
- Loading branch information
Showing
52 changed files
with
151 additions
and
959 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Reviewers - Content Systems | ||
|
||
# **What it does**: Automatically add reviewers based on paths, but only for the docs-internal repo. | ||
# **Why we have it**: So we can have reviewers automatically without getting open source notifications. | ||
# **Who does it impact**: Docs team. | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'contributing/content-*.md' | ||
- 'content/contributing/**.md' | ||
- .github/workflows/reviewers-content-systems.yml | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
repository-projects: read | ||
|
||
jobs: | ||
reviewers-content-systems: | ||
if: >- | ||
${{ github.repository == 'github/docs-internal' && | ||
!github.event.pull_request.draft && | ||
!contains(github.event.pull_request.labels.*.name, 'reviewers-content-systems') && | ||
github.event.pull_request.head.ref != 'repo-sync' }} | ||
runs-on: ubuntu-latest | ||
env: | ||
PR: ${{ github.event.pull_request.html_url }} | ||
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }} | ||
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Add content systems as a reviewer | ||
run: | | ||
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name') | ||
if ! echo "$labels" | grep -q 'reviewers-content-systems'; then | ||
gh pr edit $PR --add-reviewer github/docs-content-systems | ||
gh pr edit $PR --add-label reviewers-content-systems | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.