Skip to content

πŸ™Œ OpenHands: AI-Driven Development

ci: add label-triggered OpenHands QA workflow (#1283)

Engel Nyst1016affac18d
diff --git a/.github/workflows/qa-changes-by-openhands.yml b/.github/workflows/qa-changes-by-openhands.yml
new file mode 100644
index 0000000000..0e94e47fc9
--- /dev/null
+++ b/.github/workflows/qa-changes-by-openhands.yml
@@ -0,0 +1,41 @@
+---
+# Automated QA validation of PR changes using OpenHands.
+#
+# This workflow runs only when the `qa-this` label is added to a same-repo PR.
+# Unlike code review, the QA agent executes the changed code and posts a
+# functional verification report.
+name: QA Changes by OpenHands
+
+on:
+ pull_request:
+ types: [labeled]
+
+permissions:
+ contents: read
+ pull-requests: write
+ issues: write
+
+jobs:
+ qa-changes:
+ # Only run for same-repo PRs (secrets are not available to forks), and
+ # only when explicitly triggered by the `qa-this` label.
+ if: |
+ github.event.pull_request.head.repo.full_name == github.repository &&
+ github.event.label.name == 'qa-this'
+ concurrency:
+ group: qa-changes-${{ github.event.pull_request.number }}
+ cancel-in-progress: true
+ runs-on: ubuntu-24.04
+ timeout-minutes: 30
+ steps:
+ - name: Run QA Changes
+ uses: OpenHands/extensions/plugins/qa-changes@main
+ with:
+ llm-model: litellm_proxy/openai/gpt-5.5
+ llm-base-url: https://llm-proxy.app.all-hands.dev
+ max-budget: '10.0'
+ timeout-minutes: '30'
+ max-iterations: '500'
+ llm-api-key: ${{ secrets.LLM_API_KEY }}
+ github-token: ${{ secrets.OPENHANDS_BOT_GITHUB_PAT_PUBLIC || github.token }}
+ lmnr-api-key: ${{ secrets.LMNR_SKILLS_API_KEY }}