You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@
6
6
7
7
Automatically approve GitHub pull requests.
8
8
9
-
**Important:** use v3 or later, as v2 uses Node.js 12, which is deprecated. If you're on an old version of GHES (earlier than 3.4) you may need to use v2 until you can upgrade. v1 was designed for the initial GitHub Actions beta, and no longer works.
9
+
**Important:** use v4 or later, as earlier versions use deprecated versions of node. If you're on an old version of GHES (with an old version of the node interpreter) you may need to use an easier version until you can upgrade.
10
10
11
11
## Usage instructions
12
12
13
-
Create a workflow file (e.g. `.github/workflows/auto-approve.yml`) that contains a step that `uses: hmarr/auto-approve-action@v3`. Here's an example workflow file:
13
+
Create a workflow file (e.g. `.github/workflows/auto-approve.yml`) that contains a step that `uses: hmarr/auto-approve-action@v4`. Here's an example workflow file:
14
14
15
15
```yaml
16
16
name: Auto approve
@@ -22,7 +22,7 @@ jobs:
22
22
permissions:
23
23
pull-requests: write
24
24
steps:
25
-
- uses: hmarr/auto-approve-action@v3
25
+
- uses: hmarr/auto-approve-action@v4
26
26
```
27
27
28
28
Combine with an `if` clause to only auto-approve certain users. For example, to auto-approve [Dependabot][dependabot] pull requests, use:
@@ -39,7 +39,7 @@ jobs:
39
39
pull-requests: write
40
40
if: github.actor == 'dependabot[bot]'
41
41
steps:
42
-
- uses: hmarr/auto-approve-action@v3
42
+
- uses: hmarr/auto-approve-action@v4
43
43
```
44
44
45
45
If you want to use this action from a workflow file that doesn't run on the `pull_request` or `pull_request_target` events, use the `pull-request-number` input:
@@ -122,4 +122,4 @@ If you're using a [CODEOWNERS file](https://docs.github.com/en/github/creating-c
122
122
123
123
## Development and release process
124
124
125
-
Each major version corresponds to a branch (e.g. `v2`, `v3`). The latest major version (`v3` at the time of writing) is the repository's default branch. Releases are tagged with semver-style version numbers (e.g. `v1.2.3`).
125
+
Each major version corresponds to a branch (e.g. `v3`, `v4`). The latest major version (`v4` at the time of writing) is the repository's default branch. Releases are tagged with semver-style version numbers (e.g. `v1.2.3`).
0 commit comments