mirror of
https://github.com/go-gitea/gitea.git
synced 2026-06-17 19:10:22 +03:00
ci: trigger giteabot maintenance on main pushes (#38135)
This commit is contained in:
@@ -1,9 +1,16 @@
|
|||||||
name: giteabot
|
name: giteabot
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# When main advances, rerun merge queue maintenance so the oldest
|
||||||
|
# reviewed/wait-merge PR can be updated against the new base promptly.
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
# pull_request_target gives this workflow access to GITEABOT_TOKEN on PRs from
|
# pull_request_target gives this workflow access to GITEABOT_TOKEN on PRs from
|
||||||
# forks, which the bot needs to write labels, statuses and comments. Safe here
|
# forks, which the bot needs to write labels, statuses and comments. Safe here
|
||||||
# because the job only runs a pinned action and never checks out PR HEAD.
|
# because the job only runs a pinned action and never checks out PR HEAD.
|
||||||
|
# These PR lifecycle events drive label maintenance, queue maintenance, and
|
||||||
|
# explicit bot actions triggered by relevant label changes.
|
||||||
pull_request_target: # zizmor: ignore[dangerous-triggers]
|
pull_request_target: # zizmor: ignore[dangerous-triggers]
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
@@ -13,13 +20,19 @@ on:
|
|||||||
- closed
|
- closed
|
||||||
- review_requested
|
- review_requested
|
||||||
- review_request_removed
|
- review_request_removed
|
||||||
|
# Review events keep review-derived state such as lgtm labels and status checks
|
||||||
|
# in sync after approvals, edits, or dismissals.
|
||||||
pull_request_review:
|
pull_request_review:
|
||||||
types:
|
types:
|
||||||
- submitted
|
- submitted
|
||||||
- edited
|
- edited
|
||||||
- dismissed
|
- dismissed
|
||||||
|
# Periodic maintenance is still useful as a backstop for queue cleanup and
|
||||||
|
# other housekeeping, even though main pushes now trigger it promptly.
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "15 3 * * *"
|
- cron: "15 3 * * *"
|
||||||
|
# Allow maintainers to rerun selected checks manually when debugging bot
|
||||||
|
# behavior without waiting for another repository event.
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
checks:
|
checks:
|
||||||
|
|||||||
Reference in New Issue
Block a user