github2gerrit 2.3.0__py3-none-any.whl → 2.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- github2gerrit/models.py +5 -2
- {github2gerrit-2.3.0.dist-info → github2gerrit-2.4.0.dist-info}/METADATA +12 -2
- {github2gerrit-2.3.0.dist-info → github2gerrit-2.4.0.dist-info}/RECORD +6 -6
- {github2gerrit-2.3.0.dist-info → github2gerrit-2.4.0.dist-info}/WHEEL +0 -0
- {github2gerrit-2.3.0.dist-info → github2gerrit-2.4.0.dist-info}/entry_points.txt +0 -0
- {github2gerrit-2.3.0.dist-info → github2gerrit-2.4.0.dist-info}/licenses/LICENSE +0 -0
github2gerrit/models.py
CHANGED
|
@@ -27,18 +27,21 @@ RECHECK_EVENTS: frozenset[str] = frozenset(
|
|
|
27
27
|
{
|
|
28
28
|
"issue_comment",
|
|
29
29
|
"pull_request_review",
|
|
30
|
+
"schedule",
|
|
30
31
|
}
|
|
31
32
|
)
|
|
32
33
|
"""Events that ask the tool to look at a pull request again.
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
None changes the pull request's code, so each maps to UPDATE: an
|
|
35
36
|
existing Gerrit change should gain a patchset rather than a sibling.
|
|
36
37
|
|
|
37
38
|
They exist because the fork approval gate needs a **privileged** run to
|
|
38
39
|
notice that a maintainer has approved. GitHub withholds secrets from
|
|
39
40
|
``pull_request_review`` on a fork pull request, so the approval itself
|
|
40
41
|
cannot be the run that acts on it (see
|
|
41
|
-
:func:`github2gerrit.cli._skip_unprivileged_fork_run`).
|
|
42
|
+
:func:`github2gerrit.cli._skip_unprivileged_fork_run`). A comment
|
|
43
|
+
asks for the re-check; a schedule makes it without anyone asking, one
|
|
44
|
+
pull request per job of the reusable workflow's sweep (#421).
|
|
42
45
|
|
|
43
46
|
The important property is that these are *triggers only*. They decide
|
|
44
47
|
when to re-evaluate, never whether to proceed: authorisation is always
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: github2gerrit
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: Submit a GitHub pull request to a Gerrit repository.
|
|
5
5
|
Project-URL: Homepage, https://github.com/lfreleng-actions/github2gerrit-action
|
|
6
6
|
Project-URL: Repository, https://github.com/lfreleng-actions/github2gerrit-action
|
|
@@ -145,6 +145,9 @@ on:
|
|
|
145
145
|
# pull_request_review runs on fork PRs.
|
|
146
146
|
issue_comment:
|
|
147
147
|
types: [created]
|
|
148
|
+
# Optional: transfer approved fork PRs without anyone commenting.
|
|
149
|
+
# schedule:
|
|
150
|
+
# - cron: "17 * * * *"
|
|
148
151
|
push:
|
|
149
152
|
branches: [main, master]
|
|
150
153
|
workflow_dispatch:
|
|
@@ -189,6 +192,12 @@ which closes a human-authored pull request before the approval gate
|
|
|
189
192
|
sees it, so leaving it set would make the fork path unreachable. Drop
|
|
190
193
|
both if the repository only ever receives automation PRs.
|
|
191
194
|
|
|
195
|
+
The optional `schedule` trigger does the comment's job unattended: each
|
|
196
|
+
run transfers fork pull requests whose current commit a maintainer has
|
|
197
|
+
approved, one job per pull request, and leaves every other pull request
|
|
198
|
+
alone. See
|
|
199
|
+
[scheduled sweeps](docs/features.md#which-triggers-can-lift-the-gate).
|
|
200
|
+
|
|
192
201
|
Repositories using the Gerrit-side dispatch integration should also
|
|
193
202
|
declare `GERRIT_CHANGE_URL`, `GERRIT_EVENT_TYPE`, and `GERRIT_BRANCH`
|
|
194
203
|
as dispatch inputs and forward them the same way.
|
|
@@ -263,7 +272,8 @@ A composite action cannot start jobs, so here a bulk `workflow_dispatch`
|
|
|
263
272
|
(`PR_NUMBER` of `0`) still processes every open pull request in one job. That
|
|
264
273
|
job does not serialise against the per-pull-request runs events start, so
|
|
265
274
|
avoid triggering one while pull request activity is in flight, or use the
|
|
266
|
-
reusable workflow, which fans the sweep out.
|
|
275
|
+
reusable workflow, which fans the sweep out. For the same reason a `schedule`
|
|
276
|
+
trigger works only through the reusable workflow.
|
|
267
277
|
|
|
268
278
|
### Option C: command-line tool
|
|
269
279
|
|
|
@@ -19,7 +19,7 @@ github2gerrit/github_api.py,sha256=GuncFKSyd8PYlTAzc4iIZIvNnQB4sN0pXn_-Gh5s3ck,1
|
|
|
19
19
|
github2gerrit/gitreview.py,sha256=JV7wIninafcEw5bIt9KxN6ZtGWCPsQ0eq-VeOQ-R2kA,24240
|
|
20
20
|
github2gerrit/gitutils.py,sha256=PtaQMpYrf4hC2TjR8fyI0OjHyCLeDnyK8rsvOac2uoE,26512
|
|
21
21
|
github2gerrit/mapping_comment.py,sha256=4jpiiMnoZCT-rRd3WIdMi-afrI3HriwCfdYZ8qLZHE0,9670
|
|
22
|
-
github2gerrit/models.py,sha256=
|
|
22
|
+
github2gerrit/models.py,sha256=t7zu3jPaZOWp8RcEu4Oa1_8WmdIjhLIldYpYd5vAExQ,8601
|
|
23
23
|
github2gerrit/netrc.py,sha256=lRoT001CjqcduIjmJ3GNz9h8oH4OYTlppKYt32V-pRE,26941
|
|
24
24
|
github2gerrit/pr_approval.py,sha256=UJHnUpyJqgTtL3KqS-An-tsjjmi5-bzs5YauU0ddvww,13489
|
|
25
25
|
github2gerrit/pr_commands.py,sha256=4HK6GU8QRMbe2AIx9QT5_BVn7cY8XC3dtgPuwc74vOU,19458
|
|
@@ -39,8 +39,8 @@ github2gerrit/trust.py,sha256=_1T4qRmnpQNd6dcVMBGqrP0pcZsW5QKYgpHWYsAZuoI,4275
|
|
|
39
39
|
github2gerrit/utils.py,sha256=2izB7vvp0-Lnej4dx5eE8mW3is-PdYBWQyor8eUcyhk,6934
|
|
40
40
|
github2gerrit/orchestrator/__init__.py,sha256=HAEcdCAHOFr8LsdIwAdcIcFZn_ayMbX9rdVUULp8410,864
|
|
41
41
|
github2gerrit/orchestrator/reconciliation.py,sha256=TJaAsuLo0_PRnWt3e_RxwKufETKX8b1unV_U_lsZp8E,22105
|
|
42
|
-
github2gerrit-2.
|
|
43
|
-
github2gerrit-2.
|
|
44
|
-
github2gerrit-2.
|
|
45
|
-
github2gerrit-2.
|
|
46
|
-
github2gerrit-2.
|
|
42
|
+
github2gerrit-2.4.0.dist-info/METADATA,sha256=fWui6xxhAH1mHt2whscLFmaVFTVHj_YPR-8xCAv5ZlI,27590
|
|
43
|
+
github2gerrit-2.4.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
44
|
+
github2gerrit-2.4.0.dist-info/entry_points.txt,sha256=MxN2_liIKo3-xJwtAulAeS5GcOS6JS96nvwOQIkP3W8,56
|
|
45
|
+
github2gerrit-2.4.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
46
|
+
github2gerrit-2.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|