Skip to content

Commit cee2ac0

Browse files
authored
auto approve PRs (#29)
1 parent 00b77ac commit cee2ac0

File tree

4 files changed

+189
-48
lines changed

4 files changed

+189
-48
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# gh-action-auto-merge-dependency-updates
22

3-
A GitHub action that will automatically merge a PR that only contains dependency updates, based on some rules.
3+
A GitHub action that will automatically approve and merge a PR that only contains dependency updates, based on some rules.
44

55
If you run tests on PR's make sure you [configure those as required status checks](https://docs.github.com/en/github/administering-a-repository/enabling-required-status-checks) so that they need to go green before the merge can occur.
66

@@ -11,6 +11,7 @@ Note that the action does not check the "package-lock.json" is valid, so you sho
1111
- `repo-token`: a GitHub API token. E.g. `${{ secrets.GITHUB_TOKEN }}`
1212
- `allowed-actors`: A comma separated list of usernames auto merge is allowed for.
1313
- `allowed-update-types` (optional): A comma separated list of types of updates that are allowed. Supported: [devDependencies|dependencies]:[major|minor|patch]. _Default: `devDependencies:minor, devDependencies:patch`_
14+
- `approve` (optional): Automatically approve the PR if it qualifies for auto merge. _Default: `true`_
1415
- `package-block-list` (optional): A comma separated list of packages that auto merge should not be allowed for.
1516

1617
You should configure this action to run on the `pull_request` and `pull_request_review` events.

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ inputs:
1111
allowed-update-types:
1212
description: 'Comma separated list of types of updates that are allowed. Supported: [devDependencies|dependencies]:[major|minor|patch]'
1313
default: 'devDependencies:minor, devDependencies:patch'
14+
approve:
15+
description: 'Automatically approve the PR if it qualifies for auto merge'
16+
default: 'true'
1417
package-block-list:
1518
required: false
1619
description: 'Comma separated list of packages that auto merge should not be allowed for'

0 commit comments

Comments
 (0)