auto-request-review icon indicating copy to clipboard operation
auto-request-review copied to clipboard

Add condition according to label

Open acepaceNS opened this issue 3 years ago • 3 comments

Not sure if there's an alternative option

Would you be open a PR adding option to add reviewers according to labels?

acepaceNS avatar Feb 07 '22 19:02 acepaceNS

as far I see, there's no such a feature -yet. but what you could do, conditionally, you could run the specific step based on the label you are looking for.

name: CI
on:
  pull_request:
    types: [labeled]
jobs:
  build:
    if: ${{ github.event.label.name == 'BUG' }}
    runs-on: ubuntu-latest

gdegirmenci avatar Feb 19 '22 21:02 gdegirmenci

Yeah, if what @acepaceNS meant is that you'd like to use different sets of reviewers for each level, this action doesn't support that feature for now.

necojackarc avatar Feb 23 '22 13:02 necojackarc

supporting labels would potentially unlock a use case I have for this 👍🏻

bnb avatar Mar 03 '22 19:03 bnb