-
Notifications
You must be signed in to change notification settings - Fork 60.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-text-formatting-with-colon-3
- Loading branch information
Showing
93 changed files
with
582 additions
and
547 deletions.
There are no files selected for viewing
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,34 @@ | ||
name: Add Dependabot Core Maintainers as Reviewers | ||
|
||
# **What it does**: Automatically add reviewers based on paths, for docs-internal and docs repos. | ||
# **Why we have it**: So dependabot maintainers can be notified about relevant pull requests. | ||
# **Who does it impact**: dependabot-core. | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'data/reusable/dependabot/**' | ||
- 'content/code-security/dependabot/**' | ||
- 'content/rest/dependabot/**' | ||
|
||
jobs: | ||
add-reviewer: | ||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Add Dependabot Core Maintainers as reviewers | ||
env: | ||
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }} | ||
PR: ${{ github.event.pull_request.html_url }} | ||
run: | | ||
has_reviewer=$( | ||
gh pr view $PR --json reviews | | ||
jq 'any(.reviews[]; select(length > 0))' | ||
) | ||
if ! $has_reviewer | ||
then | ||
gh pr edit $PR --add-reviewer github/dependabot-core | ||
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
Oops, something went wrong.