Skip to main content

Pull Request Validation

CodeValid continuously monitors your repository and automatically runs tests whenever code changes are made.
Think of it as automatic testing and bug detection integrated into your pull request workflow.

When you make changes and create a pull request:

  • CodeValid analyzes the changes
  • Checks them against the features they touch
  • Runs the relevant test cases
  • Posts a summary on the pull request

Setting up Pull Request Validation

  1. Finish setup and merge the setup pull request. See Connecting to your repository.
  2. Make sure Check pull requests is on in Workspace settings → General. It is on by default.

Pull requests from forks are not checked.

How it works​

  1. When you open a pull request, CodeValid starts checking it within a few minutes.
  2. CodeValid posts a comment titled CodeValid validation and updates it as the run goes on.

Pull Request Validation Progress

  1. The comment covers:

    • What this PR changes, with a diagram of how the change flows when the change is large
    • Spec and scenario review: places where the change disagrees with the behavior rules or test scenarios of the features it touches
    • Test results: the checks for the endpoints the change reaches, run both without and with your change, so you can see what it broke
    • Contract changes, Performance and Security, when there is something to report
    • A link to open the test run in CodeValid
  2. When the run is finished, the comment says All checks done.

When does validation run for a pull request?​

CodeValid validation is triggered in all of the following situations:

ScenarioDescription
New Pull Request createdYou open a new pull request.
New commit on Pull RequestYou push one or more new commits to an existing pull request.
Comment with @codevalid/retryYou add a pull request comment that starts with @codevalid/retry to re-run validation.
Pull Request reopenedA previously closed pull request is reopened.

In each case, the event leads to CodeValid running validation on the Pull Request:

Comment commands​

You can use this command in PR comments to control CodeValid:

CommandDescription
@codevalid/retryRe-runs validation on the pull request. The comment must start with it.

You can turn the email about each pull request check on or off under Alerts.