Skip to content

Commit

Permalink
Add an option to use github's auto merge
Browse files Browse the repository at this point in the history
  • Loading branch information
shouichi committed Nov 7, 2022
1 parent 205c80f commit e8dfb66
Show file tree
Hide file tree
Showing 8 changed files with 1,413 additions and 1,270 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -25,6 +25,16 @@ _Optional_ The merge method you would like to use (squash, merge, rebase). Defau

_Optional_ An arbitrary message that you'd like to comment on the PR after it gets auto-merged. This is only useful when you're recieving too much of noise in email and would like to filter mails for PRs that got automatically merged.

### `enable-auto-merge`

_Optional_ If `true`, the PR is marked as auto-merge and will be merged by github when status checks are satisfied. Default to `false`.

_NOTE_ This feature only works when all of the following conditions are met.

- The repository enables auto-merge.
- The pull request base must have a branch protection rule.
- The pull request's status checks are not yet satisfied.

### `target`

_Optional_ A flag to only auto-merge updates based on Semantic Versioning. Defaults to `any`.
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Expand Up @@ -21,6 +21,10 @@ inputs:
description: "An arbitrary message that you'd like to comment on the PR after it gets auto-merged"
required: false
default: ''
enable-auto-merge:
description: 'If true, the PR is only marked as auto-merge enabled'
required: false
default: false
target:
description: 'Auto-merge on major, minor, patch updates based on Semantic Versioning'
required: false
Expand Down

0 comments on commit e8dfb66

Please sign in to comment.