Added auto-assign workflow to pull requests

no issue

- Renovate will open PRs to bump dependencies but these are unassigned
- Renovate does have the ability to set assignees, but these are blanket
  assigns not based upon the package that is being upgraded
- we want to assign them to the owners of the package that is being
  upgraded
- I've created the `gh-auto-assign` GitHub CLI exntension which reads a
  `.github/AUTO_ASSIGN` file and assign PRs based upon the entries listed
- this commit adds the initial `AUTO_ASSIGN` file and GitHub Actions
  workflow to trigger when a PR is opened
This commit is contained in:
Daniel Lockyer 2021-09-08 10:12:31 +01:00
parent 0bb14c115b
commit d897942af7
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD
2 changed files with 18 additions and 0 deletions

3
.github/AUTO_ASSIGN vendored Normal file
View File

@ -0,0 +1,3 @@
renovate/tryghost-kg-.* kevinansfield
renovate/tryghost-members-.* allouis
renovate/.* daniellockyer

15
.github/workflows/auto-assign.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Auto Assign
on:
pull_request:
types: [opened, reopened]
jobs:
automate:
runs-on: ubuntu-18.04
env:
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v2
- run: gh extension install daniellockyer/gh-auto-assign
- run: gh auto-assign
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}