Skill 1.2.1

Running builds or tests when generating pull requests or code merges (for example, CodeBuild)

Key Concepts

CodeBuild webhooks for GitHub, GitHub Enterprise, GitLab and Bitbucket start a build on events such as PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED and PUSH, with filter groups on branch names, file paths and actors. CodeBuild reports the build status back to the pull request so branch protection can block merging until checks pass.

After merge, the pipeline runs the full build and test suite again on the merged code. Keeping pull request checks fast (unit tests, linting, static analysis) and running slower suites after merge gives developers quick feedback without weakening the pipeline.