From a2779fe2f6c9ab29508676f21242b1c6b88e2f67 Mon Sep 17 00:00:00 2001 From: Rohit Malhotra Date: Fri, 22 Nov 2024 23:22:38 -0500 Subject: [PATCH] [Resolver] Invoking resolver when macro is present anywhere in comment body (#5197) --- .github/workflows/openhands-resolver.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index 4e9e834048..f24a8e90cb 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -53,12 +53,12 @@ jobs: ( ((github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') && - startsWith(github.event.comment.body, inputs.macro || '@openhands-agent') && + contains(github.event.comment.body, inputs.macro || '@openhands-agent') && (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') && + contains(github.event.review.body, inputs.macro || '@openhands-agent') && (github.event.review.author_association == 'OWNER' || github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER') ) ) @@ -85,11 +85,11 @@ jobs: github.event.label.name == 'fix-me-experimental' || ( (github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') && - startsWith(github.event.comment.body, '@openhands-agent-exp') + contains(github.event.comment.body, '@openhands-agent-exp') ) || ( github.event_name == 'pull_request_review' && - startsWith(github.event.review.body, '@openhands-agent-exp') + contains(github.event.review.body, '@openhands-agent-exp') ) ) uses: actions/cache@v3