Skip to content

Commit

Permalink
ci: fix pull-request-commentor workflow
Browse files Browse the repository at this point in the history
Fix if condition in workflow to account
for ok-to-test label on newly created prs.

Signed-off-by: Rakshith R <rar@redhat.com>
  • Loading branch information
Rakshith-R authored and mergify[bot] committed May 26, 2023
1 parent b157b1a commit cf0fd2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pull-request-commentor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ on:
jobs:
add-comment:
# yamllint disable-line rule:line-length
if: github.event.label.name == 'ok-to-test' && github.event.pull_request.merged != 'true'
if: (github.event.pull_request.label == ok-to-test && \
github.event.pull_request.merged != 'true') || \
(github.event.pull_request.action == opened && \
contains(github.event.pull_request.labels.*.name,'ok-to-test'))
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down

0 comments on commit cf0fd2b

Please sign in to comment.