name: "PR Conflicts checker" on: # zizmor: ignore[dangerous-triggers] Uses pull_request_target only to label/comment on PR metadata, not to check out or execute PR code. pull_request_target: types: [synchronize] permissions: contents: read issues: write pull-requests: write jobs: Conflict_Check: name: 'Check PR status: conflicts and resolution' runs-on: ubuntu-latest steps: - name: check if PRs are dirty uses: eps1lon/actions-label-merge-conflict@0273be72a0bbd58fcd71d0d6c02c209b50d1e5e1 # v3.1.0 with: dirtyLabel: "state: conflict" removeOnDirtyLabel: "state: conflict resolved" repoToken: "${{ secrets.GITHUB_TOKEN }}" commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request." commentOnClean: "Conflicts have been resolved. A maintainer will review the pull request shortly."