mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 07:29:29 -05:00
ci: update conditions on when to auto assign reviewer (#3141)
* Use the correct value for `github.event.pull_request.requested_reviewers` * Run the workflow on more events than just labeling a PR * Skip workflow if there are already reviewers assigned --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
5a100d1fc9
commit
1514351571
10
.github/workflows/assign_reviewer.yml
vendored
10
.github/workflows/assign_reviewer.yml
vendored
@ -2,7 +2,13 @@ name: Assign Reviewer
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: ["labeled"]
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- edited
|
||||
- synchronize
|
||||
- review_request_removed
|
||||
- labeled
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
@ -10,7 +16,7 @@ permissions:
|
||||
jobs:
|
||||
assign_reviewer:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.label.name == 'dependencies' && github.event.pull_request.user.login == 'app/renovate'
|
||||
if: contains(github.event.pull_request.labels.*.name, 'dependencies') && toJson(github.event.pull_request.requested_reviewers) == '[]' && github.event.pull_request.user.login == 'renovate[bot]'
|
||||
steps:
|
||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
- name: Pick assignee
|
||||
|
Loading…
Reference in New Issue
Block a user