Update translations #741
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
name: Verify PR | |
on: | |
pull_request: | |
types: [edited, synchronize, opened, reopened] | |
branches: | |
- development | |
check_run: | |
jobs: | |
verify_linked_issue: | |
runs-on: ubuntu-latest | |
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' | |
name: Ensure Pull Request has a linked issue. | |
steps: | |
- name: Verify Linked Issue | |
id: verify_linked_issues | |
uses: Codeinwp/verify-linked-issue-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | |
with: | |
quiet: "true" | |
- name: Find Comment | |
uses: peter-evans/find-comment@v1 | |
id: find_coomment | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: "pirate-bot" | |
body-includes: No Linked Issue found | |
- name: Create or update comment | |
uses: peter-evans/create-or-update-comment@v1 | |
if: steps.verify_linked_issues.outputs.has_linked_issues != 'true' | |
with: | |
comment-id: ${{ steps.find_coomment.outputs.comment-id }} | |
token: ${{ secrets.BOT_TOKEN }} | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
:guardsman: PR Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> | |
edit-mode: replace | |
- name: Fail action on no issue found | |
if: steps.verify_linked_issues.outputs.has_linked_issues == 'false' | |
run: exit 1; | |
- name: Delete comment | |
uses: winterjung/comment@v1 | |
if: steps.verify_linked_issues.outputs.has_linked_issues == 'true' && steps.find_coomment.outputs.comment-id != '' | |
with: | |
type: delete | |
comment_id: ${{ steps.find_coomment.outputs.comment-id }} | |
token: ${{ secrets.BOT_TOKEN }} |