Skip to content

Commit

Permalink
ci: add prevent-no-label-execution for openai-pr-reviewer (#4437)
Browse files Browse the repository at this point in the history
* ci: add prevent-no-label-execution for openai-pr-reviewer

Signed-off-by: Ryohsuke Mitsudome <[email protected]>

* ci: add checks for labels to trigger openai-pr-reviwer

Signed-off-by: Ryohsuke Mitsudome <[email protected]>

* ci: fix label name for openai-pr-reviewer

Signed-off-by: Ryohsuke Mitsudome <[email protected]>

---------

Signed-off-by: Ryohsuke Mitsudome <[email protected]>
  • Loading branch information
mitsudome-r authored Jul 28, 2023
1 parent 8f905a1 commit 7a4a8f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/openai-pr-reviewer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ permissions:

on:
pull_request:
types:
- opened
- synchronize
- labeled
pull_request_review_comment:
types: [created]

Expand All @@ -16,7 +20,13 @@ concurrency:
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }}

jobs:
prevent-no-label-execution:
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
with:
label: openai-pr-reviewer
review:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: fluxninja/openai-pr-reviewer@latest
Expand Down

0 comments on commit 7a4a8f8

Please sign in to comment.