Merge pull request #796 from jellyfin/merge-conflicts

ci(github): tag PRs with merge conflicts automatically
This commit is contained in:
Julien Machiels 2021-02-25 23:32:46 +01:00 committed by GitHub
commit 9ad3e3a48a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

20
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,20 @@
tests:
- "**/*.spec.js"
github_actions:
- ".github/workflows/*"
vuex:
- "store/**/*.ts"
plugins:
- "plugins/**/*.ts"
vue:
- "**/*.vue"
docker:
- "Dockerfile*"
ui:
- any: ["components/**/*.vue", "layouts/**/*.vue", "pages/**/*.vue"]

11
.github/workflows/label.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: "Label pull requests"
on:
- pull_request_target
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

15
.github/workflows/merge-conflicts.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: "Merge Conflicts"
on:
push:
branches:
- master
jobs:
triage:
runs-on: ubuntu-latest
if: github.repository == 'jellyfin/jellyfin-vue'
steps:
- uses: mschilde/auto-label-merge-conflicts@master
with:
CONFLICT_LABEL_NAME: "merge conflict"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}