summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-09 19:16:13 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-09 19:16:13 +0200
commit1d1c0b6c90361effd767301f439afc424f6afb81 (patch)
tree4aa3243a42bababe77092f19d33f197b382b7a66
parent88676e526c8f86e96af5cfe0811c6a7dcdf63b92 (diff)
downloadvyos-1x-1d1c0b6c90361effd767301f439afc424f6afb81.tar.gz
vyos-1x-1d1c0b6c90361effd767301f439afc424f6afb81.zip
GitHub: sync workflows to current branch
-rw-r--r--.github/PULL_REQUEST_TEMPLATE.md17
-rw-r--r--.github/reviewers.yml34
-rw-r--r--.github/workflows/auto-author-assign.yml25
3 files changed, 72 insertions, 4 deletions
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 54c5ba107..04ca4070d 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -5,8 +5,11 @@
<!--- Provide a general summary of your changes in the Title above -->
## Types of changes
-<!--- What types of changes does your code introduce? Put an 'x' in all the boxes that apply. -->
-<!--- NOTE: Markdown requires no leading or trailing whitespace inside the [ ] for checking the box, please use [x] -->
+<!---
+What types of changes does your code introduce? Put an 'x' in all the boxes that apply.
+NOTE: Markdown requires no leading or trailing whitespace inside the [ ] for checking
+the box, please use [x]
+-->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Code style update (formatting, renaming)
@@ -25,8 +28,14 @@
<!--- Describe your changes in detail -->
## How to test
-<!--- Please describe in detail how you tested your changes. -->
-<!--- Include details of your testing environment, and the tests you ran to -->
+<!---
+Please describe in detail how you tested your changes. Include details of your testing
+environment, and the tests you ran. When pasting configs, logs, shell output, backtraces,
+and other large chunks of text, surround this text with triple backtics
+```
+like this
+```
+-->
## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
diff --git a/.github/reviewers.yml b/.github/reviewers.yml
new file mode 100644
index 000000000..9ef3ec961
--- /dev/null
+++ b/.github/reviewers.yml
@@ -0,0 +1,34 @@
+---
+python/**:
+ - c-po
+ - dmbaturin
+ - jestabro
+
+interface-definitions/**:
+ - c-po
+ - DmitriyEshenko
+ - dmbaturin
+ - jestabro
+ - sever-sever
+ - zdc
+
+op-mode-definitions/**:
+ - c-po
+ - DmitriyEshenko
+ - dmbaturin
+ - jestabro
+ - sever-sever
+ - zdc
+
+src/**:
+ - c-po
+ - DmitriyEshenko
+ - dmbaturin
+ - jestabro
+ - sever-sever
+ - zdc
+
+.github/**:
+ - c-po
+ - dmbaturin
+ - UnicronNL
diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml
new file mode 100644
index 000000000..947593fc1
--- /dev/null
+++ b/.github/workflows/auto-author-assign.yml
@@ -0,0 +1,25 @@
+name: "PR Triage"
+on:
+ pull_request_target:
+ types: [opened, reopened, ready_for_review, locked]
+
+permissions:
+ pull-requests: write
+
+jobs:
+ assign-author:
+ runs-on: ubuntu-latest
+ steps:
+ - name: "Assign Author to PR"
+ uses: toshimaru/auto-author-assign@v1.3.5
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ 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