Skip to content

Commit

Permalink
Automatically request review regardless of reviewers' collaborator st…
Browse files Browse the repository at this point in the history
…atus (CleverRaven#66072)

* Replace non-functional code owner file with auto-request-review action

* Add an entry for myself to test it

* Add @GuardianDll to reviewers.yml

* Use modified version of auto-request-review

* Only keep the last instance of the request review action running
  • Loading branch information
Qrox authored Jun 19, 2023
1 parent 137c24d commit 0d97f08
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .github/CODEOWNERS

This file was deleted.

52 changes: 52 additions & 0 deletions .github/reviewers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
files:
'data/mods/Aftershock/**':
- Maleclypse
- John-Candlebury
'data/mods/DinoMod/**':
- LyleSY
'data/mods/BombasticPerks/**':
- bombasticSlacks
'data/mods/MMA/**':
- Hymore246
'data/mods/classic_zombies/**':
- I-am-Erk
'data/mods/generic_guns/**':
- tenmillimaster
'data/mods/Magiclysm/**':
- KorGgenT
- GuardianDll
'data/mods/My_Sweet_Cataclysm/**':
- Fris0uman
'data/mods/ruralbiome/**':
- I-am-Erk
'data/mods/speedydex/**':
- KorGgenT
'data/mods/stats_through_kills/**':
- KorGgenT
'data/mods/Xedra_Evolved/**':
- Maleclypse
- GuardianDll
'data/mods/innawood/**':
- Light-Wave
'data/mods/MA/**':
- ZhilkinSerg
'data/mods/No_Hope/**':
- Night-Pryanik

'**/.clang-tidy':
- jbytheway
'**/magic*.cpp':
- KorGgenT
'**/magic*.h':
- KorGgenT
'tools/**':
- jbytheway
- int-ua
'src/widget.cpp':
- wapcaplet
- dseguin
'src/widget.h':
- wapcaplet
- dseguin
'src/ui_manager.*':
- Qrox
26 changes: 26 additions & 0 deletions .github/workflows/request-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Auto request review


on:
pull_request_target:
types: [opened, synchronize, ready_for_review, reopened]


concurrency:
group: request-review-${{ github.event.pull_request.number }}
cancel-in-progress: true


jobs:
auto-request-review:
# Do not spam reviewer with PRs in forks. If fork owners wish to alert
# people of their changes they may change this line themselves.
if: github.repository == 'CleverRaven/Cataclysm-DDA'
name: Auto request review
runs-on: ubuntu-latest
steps:
- name: Request review
uses: qrox/auto-request-review@481e6cd2f5d57b6e914d81ca731211384a76798f
with:
token: ${{ secrets.GITHUB_TOKEN }}
config: .github/reviewers.yml

0 comments on commit 0d97f08

Please sign in to comment.