Set it up
Add the lane
Upload the pull request build, then start a change review pinned to it.
Post the review
Connect GitHub or GitLab so the agent can read the diff and post comments.
Get the results
Poll the conversation the same way as any other API-started review.
QATECH_API_TOKEN, QATECH_APP_ID, and, for org-scoped keys, QATECH_PROJECT_ID as described on fastlane regression testing. You do not need a test plan for a change review.
What works with fastlane
Add the lane
Copyqatech_request and qatech_upload_build from fastlane regression testing into fastlane/Fastfile, then add:
fastlane/Fastfile
.app as in the regression lane, upload it with platform: "ios", then call qatech_change_review.
Pass the pull request URL from your CI. On GitHub Actions:
PR_NUMBER from github.event.pull_request.number. For a GitLab merge request, pass the merge request URL and vcs_provider_id: "gitlab".
Post the review
fastlane does not post the review by itself. Before the lane calls the change review API:- Connect the GitHub App with access to the repository, or connect GitLab MR reviews.
- Pass a
pr_urlthe agent can resolve (GitHub PR or GitLab MR). - The agent reads the diff and posts the review through that connection.