Skip to content

Commit

Permalink
Update notify-triagers.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anshgoyalevil authored Mar 11, 2024
1 parent a5d0481 commit b067bac
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/notify-triagers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,23 @@ jobs:
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "The PR contains modifications to `.md` files, hence tagging Code triagers for review and approval.
cc: ${{ steps.read-triagers-json.outputs.code-triagers }}"
body: "The PR contains modifications to `.md` files, hence tagging Code triagers for review and approval.\ncc: ${{ steps.read-triagers-json.outputs.code-triagers }}"
})
- name: Create comment for .md files
if: steps.md-pr-changes.outputs.any_changed == 'true'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
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 }}"
body: "The PR contains modifications to `.md` files, hence tagging Docs triagers for review and approval.\ncc: ${{ steps.read-triagers-json.outputs.md-triagers }}"
})

0 comments on commit b067bac

Please sign in to comment.