mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
GitHub: add PR conflict and author assignment workflows
This commit is contained in:
parent
392dc16672
commit
6f679441bd
19
.github/reviewers.yml
vendored
Normal file
19
.github/reviewers.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
docker-vyos/**:
|
||||
- sever-sever
|
||||
- DmitriyEshenko
|
||||
|
||||
vars/**:
|
||||
- c-po
|
||||
- UnicronNL
|
||||
|
||||
.github/**:
|
||||
- c-po
|
||||
- dmbaturin
|
||||
- UnicronNL
|
||||
|
||||
'**':
|
||||
- c-po
|
||||
- dmbaturin
|
||||
- jestabro
|
||||
- UnicronNL
|
||||
27
.github/workflows/auto-author-assign.yml
vendored
Normal file
27
.github/workflows/auto-author-assign.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: "PR Triage"
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, reopened, ready_for_review, locked]
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
# https://github.com/marketplace/actions/auto-author-assign
|
||||
assign-author:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Assign Author to PR"
|
||||
uses: toshimaru/auto-author-assign@v1.3.5
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# https://github.com/shufo/auto-assign-reviewer-by-files
|
||||
assign_reviewer:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Request review based on files changes and/or groups the author belongs to
|
||||
uses: shufo/auto-assign-reviewer-by-files@v1.1.1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
config: .github/reviewers.yml
|
||||
18
.github/workflows/pr-conflicts.yml
vendored
Normal file
18
.github/workflows/pr-conflicts.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: "PR Conflicts checker"
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [synchronize]
|
||||
|
||||
jobs:
|
||||
Conflict_Check:
|
||||
name: 'Check PR status: conflicts and resolution'
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: check if PRs are dirty
|
||||
uses: eps1lon/actions-label-merge-conflict@releases/2.x
|
||||
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."
|
||||
Loading…
x
Reference in New Issue
Block a user