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
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@ Merge your pull request in order when enabled the `Require branches to be up to
5
5
Inspired by [Merge Queue feature of Mergify](https://mergify.io/features/merge-queue).
6
6
7
7
> Safety
8
-
>
8
+
>
9
9
> Do not merge broken pull requests. By merging your pull requests serially using a queue, your code is safe. Each pull request is tested with the latest CI code.
10
10
11
11
> Save CI time
12
-
>
12
+
>
13
13
> Rather than overconsuming your CI time by trying to merge multiple pull requests, just run it once before the pull request gets merged.
14
14
15
15
## Quick Start
@@ -18,7 +18,7 @@ Inspired by [Merge Queue feature of Mergify](https://mergify.io/features/merge-q
18
18
19
19
1. Enable `Allow auto-merge` in `Settings/Options`.
20
20
21
-
3. Create a workflow file (`.github/workflow/update-branch.yaml`):
21
+
2. Create a workflow file (`.github/workflow/update-branch.yaml`):
22
22
23
23
Example:
24
24
@@ -59,6 +59,12 @@ jobs:
59
59
requiredStatusChecks: |
60
60
build_pr
61
61
WIP
62
+
# Optionally set the maximum amount of pull requests to match against (default: 50)
63
+
fetchMaxPr: 50
64
+
# Optionally set the maximum amount of pull request checks to fetch (default: 100)
65
+
fetchMaxPrChecks: 100
66
+
# Optionally set the maximum amount of pull request labels to fetch (default: 10)
67
+
fetchMaxPrLabels: 10
62
68
```
63
69
64
70
If you are using a personal access token and it has permission to access branch protection rules, you can set your jobs like:
Copy file name to clipboardExpand all lines: action.yml
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,18 @@ inputs:
31
31
required: false
32
32
description: 'The name pattern of GitHub branch protection rules to apply. The default behavior is to find the name pattern of main or master. Require personal access token to let this feature work.'
33
33
default: ''
34
+
fetchMaxPr:
35
+
required: false
36
+
description: 'The maximum amount of pull request fetch when searching for eligible pull requests.'
37
+
default: '50'
38
+
fetchMaxPrChecks:
39
+
required: false
40
+
description: 'The maximum amount of pull request checks to fetch when searching for requiredStatusChecks.'
41
+
default: '100'
42
+
fetchMaxPrLabels:
43
+
required: false
44
+
description: 'The maximum amount of pull request labels to fetch when searching for requiredLabels.'
0 commit comments