GH action - label conflicts (#5450)

* GH action - label conflicts

* .

* trigger

* trigger

* .
This commit is contained in:
Jirka Borovec 2021-01-10 21:33:46 +01:00 committed by GitHub
parent bb5031b3bf
commit f1e28d1e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

View File

@ -14,7 +14,7 @@ on: # Trigger the workflow on push or pull request, but only for the master bran
- "environment.yml"
- "requirements.txt"
- ".github/workflows/ci_dockers.yml"
- ".github/workflows/nightly.yml"
- ".github/workflows/events-nightly.yml"
- ".github/workflows/release-docker.yml"
- "setup.py"

21
.github/workflows/events-recurrent.yml vendored Normal file
View File

@ -0,0 +1,21 @@
on:
# We recommend `pull_request_target` so that github secrets are available.
# In `pull_request` we wouldn't be able to change labels of fork PRs
pull_request_target:
types: [ synchronize ]
jobs:
# This label will then be managed by this action.
# It will be added to PRs with merge conflicts and removed from PRs without conflicts.
# https://github.com/mschilde/auto-label-merge-conflicts
pr-label-conflicts:
name: Label PR conflits
runs-on: ubuntu-20.04
steps:
- uses: mschilde/auto-label-merge-conflicts@v2
with:
CONFLICT_LABEL_NAME: "has conflicts"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAX_RETRIES: 3
WAIT_MS: 5000