[Resolver]: Removing redundant checks (#5196)

Co-authored-by: Graham Neubig <neubig@gmail.com>
This commit is contained in:
Rohit Malhotra 2024-11-22 09:28:38 -05:00 committed by GitHub
parent 83add62991
commit 135a62ca9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,21 +19,6 @@ permissions:
jobs:
call-openhands-resolver:
if: |
github.event.label.name == 'fix-me' ||
(
((github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') &&
(startsWith(github.event.comment.body, inputs.macro || '@openhands-agent') || startsWith(github.event.comment.body, inputs.macro || vars.OPENHANDS_MACRO)) &&
(github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER')
) ||
(github.event_name == 'pull_request_review' &&
(startsWith(github.event.review.body, inputs.macro || '@openhands-agent') || startsWith(github.event.review.body, inputs.macro || vars.OPENHANDS_MACRO)) &&
(github.event.review.author_association == 'OWNER' || github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER')
)
)
uses: All-Hands-AI/OpenHands/.github/workflows/openhands-resolver.yml@main
with:
macro: ${{ vars.OPENHANDS_MACRO || '@openhands-agent' }}