We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ed805 commit 7d982dfCopy full SHA for 7d982df
.github/workflows/new-linter-checklist.yaml
@@ -18,16 +18,13 @@ jobs:
18
- uses: actions/checkout@v4
19
- name: Add checklist
20
run: |
21
- # This is just safety to not spam with new comments if the tag is
22
- # removed and added back multiple times maliciously. It will reset the
23
- # checklist but the previous values will be in the edit history.
+ # Avoid adding multiple comments for the same PR.
24
comment_exist=$(gh pr view "$NUMBER" \
25
--json comments \
26
--jq '.comments[].author | select(.login=="github-actions") | .login' \
27
| wc -l)
28
[ "$comment_exist" -gt 0 ] && edit_last="--edit-last"
29
30
- # Comment on the PR with the checklist.
31
gh pr comment "$NUMBER" --body "$(cat .github/new-linter-checklist.md)" $edit_last
32
env:
33
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments