forked from asyncapi/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6689668
commit 0747b69
Showing
3 changed files
with
59 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Notify Triagers | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
Notify-triagers: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
- name: Check PR Changes for .md files | ||
id: md-pr-changes | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: | | ||
**.md | ||
- name: Check PR Changes for non-.md files | ||
id: non-md-pr-changes | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: | | ||
!**.md | ||
- name: Read triagers.json | ||
if: steps.md-pr-changes.outputs.any_changed == 'true' || steps.non-md-pr-changes.outputs.any_changed == 'true' | ||
id: read-triagers-json | ||
run: | | ||
mdTriagers=$(jq -r '.mdTriagers[]' triagers.json | tr '\n' ' ') | ||
codeTriagers=$(jq -r '.codeTriagers[]' triagers.json | tr '\n' ' ') | ||
echo "md-triagers=$mdTriagers" >> $GITHUB_OUTPUT | ||
echo "code-triagers=$codeTriagers" >> $GITHUB_OUTPUT | ||
- name: Create Comment for .md files | ||
if: steps.md-pr-changes.outputs.any_changed == 'true' | ||
uses: mshick/[email protected] | ||
with: | ||
message: "The PR contains modifications to `.md` files, hence tagging Docs triagers for review and approval. | ||
cc: ${{ steps.read-triagers-json.outputs.md-triagers }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create Comment for non-.md files | ||
if: steps.non-md-pr-changes.outputs.any_changed == 'true' | ||
uses: mshick/[email protected] | ||
with: | ||
message: "The PR contains modifications to code related files, hence tagging Code triagers for review and approval. | ||
cc: ${{ steps.read-triagers-json.outputs.code-triagers }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,4 @@ | ||
{ | ||
"mdTriagers": ["@TRohit20", "@octonawish-akcodes", "@BhaswatiRoy", "@VaishnaviNandakumar", "@Arya-Gupta", "@J0SAL"], | ||
"codeTriagers": ["@sambhavgupta0705"] | ||
} |