github_linked_changes) tracks that test branch for the
application pull request a run was triggered for, and keeps a check named
Empirical linked test changes on the pull request up to date. The check fails while the test
branch has commits that are not merged into the test repository’s default branch, and passes once
there is nothing left to merge.
Results
The check links to the latest test run for the pull request.
When it updates
The check is written on the pull request’s current head commit:- when a test run is triggered for the pull request, so every new commit that triggers a run gets a check, including pull requests without any test changes
- when the test branch changes: a push, a test PR opened, closed or merged, or the branch deleted
Set up
- Install the GitHub Reporter on your application repository, with access to checks.
- Trigger runs for pull requests with
trigger.event: "pull_request"and abuildwith the repository and commit. The dispatch-action does both onpull_requestworkflow events; for API calls see Pull request runs. - Keep
github_linked_changesin the environment’s reporters. Installing the GitHub Reporter turns it on for your environments, with the other GitHub reporters. Turn it off under Settings → Environments, or leave it out of thereportersof a trigger request.
github_linked_changes asks Empirical to track its pull request’s test branch. The
pull request’s latest run decides: if that run does not have the reporter, the check stops
updating. Runs not triggered by a pull request have no test branch to track, and the reporter does
nothing for them.