Skip to content

Commit

Permalink
Add readme notes for 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zsims committed Jun 13, 2018
1 parent 8dfcd3a commit a03cbdf
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
# GitHub Pull Request Plugin

A [Buildkite plugin](https://buildkite.com/docs/agent/v3/plugins) to checkout the GitHub post-merge check PR ref (`refs/pull/123/merge`) rather than building the branch `HEAD`.
A [Buildkite plugin](https://buildkite.com/docs/agent/v3/plugins) to help build the GitHub post-merge check PR ref (`refs/pull/123/merge`).

This ensures tests run against the "merged" branch, helping catch bad merges.
This plugin helps you run CI run against the "merged" branch, helping catch bad merges.

The plugin has two modes:
- `mode: trigger` to async trigger another build (of the current pipeline); and
- `mode: checkout` to checkout the PR merged ref (`refs/pull/123/merge`) rather than the head (`refs/pull/123/head`)

## Example

```yml
steps:
- plugins:
zsims/github-merged-pr#v0.0.4: ~
zsims/github-merged-pr#v0.0.5:
mode: checkout
```
```yml
steps:
- plugins:
zsims/github-merged-pr#v0.0.5:
mode: trigger
```
Ensure `Skip pull request builds for existing commits` is set to `false` in your Pipeline settings, as BuildKite will build the branch and skip the PR build.
Expand Down

0 comments on commit a03cbdf

Please sign in to comment.