mirror of
https://github.com/fastapi/sqlmodel.git
synced 2025-10-28 04:05:15 +08:00
👷 Detect and label merge conflicts on PRs automatically (#1552)
This commit is contained in:
committed by
GitHub
parent
55abec9a9c
commit
3b1b70cf11
19
.github/workflows/detect-conflicts.yml
vendored
Normal file
19
.github/workflows/detect-conflicts.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: "Conflict detector"
|
||||
on:
|
||||
push:
|
||||
pull_request_target:
|
||||
types: [synchronize]
|
||||
|
||||
jobs:
|
||||
main:
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check if PRs have merge conflicts
|
||||
uses: eps1lon/actions-label-merge-conflict@v3
|
||||
with:
|
||||
dirtyLabel: "conflicts"
|
||||
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
||||
commentOnDirty: "This pull request has a merge conflict that needs to be resolved."
|
||||
Reference in New Issue
Block a user