Skip to content

ci: Add auto-approve workflow for owner PRs without review#977

Merged
mPokornyETM merged 3 commits intomasterfrom
add-auto-approve-owner-prs
Mar 31, 2026
Merged

ci: Add auto-approve workflow for owner PRs without review#977
mPokornyETM merged 3 commits intomasterfrom
add-auto-approve-owner-prs

Conversation

@mPokornyETM
Copy link
Copy Markdown
Contributor

Description

Adds a daily scheduled workflow that auto-approves open PRs from repo OWNER/MEMBER after 3 days without review. This eliminates waste from waiting on reviews that never come.

How it works

Day Label applied Action
0 \merge-in-3-days-without-review\ Countdown starts
1 \merge-in-2-days-without-review\ Label updated
2 \merge-in-1-day-without-review\ Final warning
3 \merged-without-review\ PR approved + auto-merge enabled

Safety guards

  • Only OWNER/MEMBER PRs — external contributor PRs are never touched
  • Skips already-approved PRs — if someone reviewed, the countdown stops
  • Labels are idempotent — created on first run if missing
  • Runs daily at 08:00 UTC + manual \workflow_dispatch\ trigger
  • Uses existing auto-merge — \gh pr merge --auto --squash\ so CI must still pass

New labels (distinct from legacy labels)

  • \merge-in-3-days-without-review\ (green)
  • \merge-in-2-days-without-review\ (yellow)
  • \merge-in-1-day-without-review\ (red-ish)
  • \merged-without-review\ (dark orange)

Prerequisite

Auto-merge must be enabled in repo settings (Settings > General > Allow auto-merge).

Adds a daily scheduled workflow (08:00 UTC, also manual trigger) that
auto-approves open PRs from repo OWNER/MEMBER after 3 days without review.

Countdown labels give reviewers clear visibility:
  Day 0 -> merge-in-3-days-without-review
  Day 1 -> merge-in-2-days-without-review
  Day 2 -> merge-in-1-day-without-review
  Day 3 -> approved + merged-without-review (auto-merge takes over)

PRs that already have an approving review are skipped.
@mPokornyETM mPokornyETM requested a review from a team as a code owner March 31, 2026 06:45
@github-actions github-actions Bot added the ci label Mar 31, 2026
@mPokornyETM mPokornyETM marked this pull request as draft March 31, 2026 09:31
@mPokornyETM mPokornyETM marked this pull request as ready for review March 31, 2026 10:01
@mPokornyETM mPokornyETM added the Merged without review ! This PR was marged without reviewers label Mar 31, 2026
@mPokornyETM mPokornyETM merged commit c8fbf4e into master Mar 31, 2026
5 of 7 checks passed
@mPokornyETM mPokornyETM deleted the add-auto-approve-owner-prs branch March 31, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Merged without review ! This PR was marged without reviewers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant