Skip to content

Commit

Permalink
Update notify-triager.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema authored Mar 11, 2024
1 parent d99abf8 commit 24ff15b
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions .github/workflows/notify-triager.yml
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:
Expand Down Expand Up @@ -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'
Expand All @@ -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 }}`
})
})

0 comments on commit 24ff15b

Please sign in to comment.