From 217e54b455b5c961a669324f4181a4c5f29f5e82 Mon Sep 17 00:00:00 2001 From: henrrypg Date: Thu, 18 Jun 2026 07:55:16 -0500 Subject: [PATCH 1/2] chore: allow run integration test workflow for org members --- .github/workflows/integration-tests.yml | 52 +++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index bb1d641c..e96370c6 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -1,19 +1,65 @@ name: Integration Tests on: - workflow_dispatch: push: - branches: [main] + branches: + - main + + workflow_dispatch: + + issue_comment: + types: + - created jobs: integration: name: Live LLM Integration Tests + + if: | + github.event_name == 'push' || + github.event_name == 'workflow_dispatch' || + ( + github.event_name == 'issue_comment' && + github.event.issue.pull_request && + startsWith(github.event.comment.body, '/integration-test') && + ( + github.event.comment.author_association == 'MEMBER' || + github.event.comment.author_association == 'OWNER' + ) + ) + runs-on: ubuntu-latest + defaults: run: working-directory: ./backend + steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + - name: Get PR details + if: github.event_name == 'issue_comment' + id: pr + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const pr = await github.rest.pulls.get({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.issue.number + }); + + core.setOutput('head_ref', pr.data.head.ref); + core.setOutput('head_repo', pr.data.head.repo.full_name); + + - name: Checkout PR branch + if: github.event_name == 'issue_comment' + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + with: + repository: ${{ steps.pr.outputs.head_repo }} + ref: ${{ steps.pr.outputs.head_ref }} + + - name: Checkout repository + if: github.event_name != 'issue_comment' + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 - name: Set up Python uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 From 579350a9dcc723d0620375ffe81e911565e7e1dd Mon Sep 17 00:00:00 2001 From: henrrypg Date: Thu, 18 Jun 2026 10:43:04 -0500 Subject: [PATCH 2/2] chore: add comment --- .github/workflows/integration-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index e96370c6..9a369d02 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -52,14 +52,14 @@ jobs: - name: Checkout PR branch if: github.event_name == 'issue_comment' - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 #v4.3.1 with: repository: ${{ steps.pr.outputs.head_repo }} ref: ${{ steps.pr.outputs.head_ref }} - name: Checkout repository if: github.event_name != 'issue_comment' - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 #v4.3.1 - name: Set up Python uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0