Skip to content

Proposal : Add block-on-denounce opt-in flag to manage actions #265

Proposal : Add block-on-denounce opt-in flag to manage actions

Proposal : Add block-on-denounce opt-in flag to manage actions #265

name: Check PR
on:
pull_request_target:
types: [opened, reopened]
issue_comment:
types: [created]
permissions:
contents: read
pull-requests: write
jobs:
check:
runs-on: ubuntu-latest
if: >-
github.event_name == 'pull_request_target' ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '/recheck'))
steps:
- uses: mitchellh/vouch/action/check-pr@main
with:
pr-number: ${{ github.event.pull_request.number || github.event.issue.number }}
auto-close: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}