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
d99abf8
commit 24ff15b
Showing
1 changed file
with
16 additions
and
22 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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
name: Notify Triagers | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
pull_request_target: | ||
types: [opened, reopened, synchronize, edited, ready_for_review] | ||
|
||
jobs: | ||
Notify-triagers: | ||
|
@@ -36,23 +34,19 @@ jobs: | |
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.GH_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.GH_TOKEN }} | ||
- name: Create Comment for non-.md files | ||
if: steps.non-md-pr-changes.outputs.any_changed == 'true' | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GH_TOKEN }} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: `The PR contains modifications to `code` files, hence tagging Docs triagers for review and approval. | ||
# cc: ${{ steps.read-triagers-json.outputs.code-triagers }}` | ||
}) | ||
- name: Create comment for .md files | ||
if: steps.md-pr-changes.outputs.any_changed == 'true' | ||
|
@@ -66,4 +60,4 @@ jobs: | |
repo: context.repo.repo, | ||
body: `The PR contains modifications to `.md` files, hence tagging Docs triagers for review and approval. | ||
# cc: ${{ steps.read-triagers-json.outputs.md-triagers }}` | ||
}) | ||
}) |