Add comment when PR is labeled

This commit is contained in:
Alex Root Junior 2022-04-11 04:06:39 +03:00
parent 7ae588d4b8
commit e8432d38f5
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -69,9 +69,14 @@ jobs:
Thank you for adding a description of the changes Thank you for adding a description of the changes
- name: Delete comment when not labeled - name: Comment when docs is not needed
if: "contains(github.event.pull_request.labels.*.name, 'skip news')" if: "contains(github.event.pull_request.labels.*.name, 'skip news')"
uses: peter-evans/delete-comment@v2 uses: peter-evans/create-or-update-comment@v2
with: with:
edit-mode: replace
comment-id: ${{ steps.fc.outputs.comment-id }} comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }} issue-number: ${{ github.event.pull_request.number }}
body: |
# :corn: Changelog is not needed.
This PR does not require a changelog in due to the `skip news` label.