Debian Codegraph @

.github/workflows/detect-conflicts.yml

raw
1 name: "Conflict detector"
2 on:
3 push:
4 pull_request_target: # zizmor: ignore[dangerous-triggers]
5 types: [synchronize]
6
7 permissions: {}
8
9 jobs:
10 main:
11 permissions:
12 contents: read
13 pull-requests: write
14 runs-on: ubuntu-latest
15 timeout-minutes: 5
16 steps:
17 - name: Check if PRs have merge conflicts
18 uses: eps1lon/actions-label-merge-conflict@0273be72a0bbd58fcd71d0d6c02c209b50d1e5e1 # v3.1.0
19 with:
20 dirtyLabel: "conflicts"
21 repoToken: "${{ secrets.GITHUB_TOKEN }}"
22 commentOnDirty: "This pull request has a merge conflict that needs to be resolved."