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
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,15 @@ We could retrieve this value from the repo settings through an API call but that
60
60
61
61
Default: true
62
62
63
-
The action will skip PRs that have failed checks.
63
+
The action will skip updating PRs that have failed checks. Please note that if `allow_ongoing_checks` is set to `false`, the action will skip updating PRs with ongoing checks. This will result in the failure to update PR branches when the action is triggered while checks for those PRs are still in progress.
64
+
65
+
### `allow_ongoing_checks`
66
+
67
+
**Optional**
68
+
69
+
Default: false
70
+
71
+
The action will consider PRs that have ongoing checks. This is useful when the action is triggered while checks for some otherwise qualified PRs are still in progress. Note, this option works only when `require_passed_checks` is set to `true`.
64
72
65
73
### `sort`
66
74
@@ -76,7 +84,6 @@ Notice: this is an option provided by github rest api. In this github action, we
76
84
77
85
The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.
78
86
79
-
80
87
This github action doesn't set any default parameters.
81
88
82
89
### `require_auto_merge_enabled`
@@ -87,7 +94,6 @@ Check if having auto-merge enabled in the PR is required, in order for the PR to
87
94
be considered. It defaults to `true`, but if set to `false`, all PRs are
88
95
considered for update (not just those with auto-merge enabled).
89
96
90
-
91
97
## Example usage
92
98
93
99
```yml
@@ -107,10 +113,11 @@ jobs:
107
113
token: ${{ secrets.ACTION_USER_TOKEN }}
108
114
base: 'master'
109
115
required_approval_count: 2
110
-
require_passed_checks: false
116
+
require_passed_checks: true
117
+
allow_ongoing_checks: true
111
118
sort: 'created'
112
119
direction: 'desc'
113
-
require_auto_merge_enabled: false
120
+
require_auto_merge_enabled: true
114
121
```
115
122
116
123
Replace the `VERSION_YOU_WANT_TO_USE` with the actual version you want to use, check the version format [here](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses)
Copy file name to clipboardExpand all lines: action.yml
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,12 @@ inputs:
17
17
default: '2'
18
18
require_passed_checks:
19
19
required: false
20
-
description: 'If the action should skip PRs that have failed checks, defaults to `true`'
20
+
description: 'If the action should skip PRs that have failed checks, defaults to `true`. Please note that if `allow_ongoing_checks` is not set to `true`, the action will skip pull requests with ongoing checks. This may result in the failure to update PR branches when the action is triggered while checks for those pull requests are still in progress.'
21
21
default: 'true'
22
+
allow_ongoing_checks:
23
+
required: false
24
+
description: 'If the action should consider PRs that have ongoing checks, defaults to `false`. The action will consider PRs that have ongoing checks. This is useful when the action is triggered while checks for some otherwise qualified PRs are still in progress. Note, this option works only when `require_passed_checks` is set to `true`.'
25
+
default: 'false'
22
26
require_auto_merge_enabled:
23
27
required: false
24
28
description: 'When set to false, the action includes PRs without auto-merge; the default true excludes such PRs.'
0 commit comments