Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansingman committed Nov 1, 2022
1 parent 306f503 commit 3db1a6c
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,42 @@
# merge-bot
GitHub action to auto-merge PRs when all reviewers approve and all checks pass.
This action manages deployments by auto-merging PRs.

PRs are auto-merged after checks for:
- Review approvals by all requested reviewers
- All listed `dependent_checks` are passing
- PR is not labeled with `blocking_label`

PRs can be merged by fast-forwarding or a merge commit.

## Example Workflow
An example workflow is shown below. This workflow runs the `merge-bot` each time one of the below events occurs:

```yaml
name: merge-bot

on:
pull_request:
types:
- labeled
- ready_for_review
- review_request_removed
- review_requested
- synchronize
- unlabeled
pull_request_review:
types:
- dismissed
- submitted

jobs:
merge-bot:
runs-on: ubuntu-latest

steps:
- uses: cleanlab/merge-bot@v1.1.0
with:
dependent_checks: "check1,check2"
blocking_label: "block-merge"
merge_type: "fast-forward"
delete_branch: true
```

0 comments on commit 3db1a6c

Please sign in to comment.