Skip to content

Hold reviewed packages' update PRs for a maintainer - #2947

Merged
maralcbr merged 1 commit into
masterfrom
upstream-review-bumps
Nov 17, 2026
Merged

maralcbr merged 1 commit into
masterfrom
upstream-review-bumps

Conversation

@maralcbr

Copy link
Copy Markdown
Member

Summary

Every update PR from sync-upstream.yml and sync-rebuilds.yml gets auto-merge armed by package-prs.yml, and auto-merge-pr.yml arms bot PRs too. So a new upstream release ships as soon as it builds. The packages imported from asahi-alarm (speakersafetyd, the boot tools, Widevine's Lacros pin) need the owner to read a bump before it lands. This adds the switch for that. The watches themselves follow in a separate package PR, so this tooling is on master first.

  • "review": true in .omarchy/package.json, validated by helpers/package-metadata.sh: a boolean, only with an upstream watch, provider or hook, never with auto_merge.
  • .github/scripts/package-pr-groups.sh marks a group "review": true when any of its packages is reviewed. Groups without one keep their current shape.
  • package-prs.yml opens a reviewed group as a draft (draft: on create only) and skips Enable auto-merge. auto-merge-pr.yml already skips drafts. When the owner marks the PR ready, it arms auto-merge, and the PR lands once result, self-tests and build-isolation pass.
  • docs/upstream-sources.md gets a Reviewed updates section.

Evidence

  • tests/pr-workflow-approval.cjs: the groups fixture gains a reviewed package, which comes out as {..., review: true} while the others keep their shape. The workflow test asserts the draft: input and the arming condition. All 45 pass in an Arch container.
  • tests/package-metadata.sh: review with a watch passes; a string, review with auto_merge, and review without a watch are each refused. Every package in the tree still validates.
  • shellcheck and actionlint are clean on the changed files.
  • No package sets review yet, so nothing changes for the existing lanes until the follow-up lands.

Merge Danger

Door: two-way

Blast Radius: the sync bots' PRs

  • Existing packages: no review key, so groups are unchanged and auto-merge is armed as before.
  • A bug in the new condition would at worst leave a sync PR unarmed, so it waits for a maintainer, or leave a reviewed PR armed. No reviewed package exists until the follow-up, which comes after this run proves out.

Every update PR the sync lanes open gets auto-merge armed, so a new
upstream release ships as soon as it builds. The Apple Silicon imports
(speaker safety, boot tools, Widevine's pin) need the owner to read a
bump first. A package marked "review": true now gets its PRs as drafts
with auto-merge left off. Marking one ready hands it to
auto-merge-pr.yml, which lands it once green.

Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds "review": true to hold automated package updates for a maintainer.

  • Reviewed package updates wait for a maintainer before they can merge.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Package updates] --> B{Group requires review?}
  B -->|No| C[Open PR and enable auto-merge]
  B -->|Yes| D[Open draft without auto-merge]
  D --> E[Maintainer marks PR ready]
  E --> F[Auto-merge workflow checks current PR]
  F --> G[Enable auto-merge]
  C --> H[Required checks pass]
  G --> H
  H --> I[Merge and publish]
Loading

Reviews (1) · Last reviewed commit: "Hold reviewed packages' update PRs for a..." · Reviewed by Greptile

@maralcbr
maralcbr merged commit a3f5c2b into master Nov 17, 2026
10 of 11 checks passed
@maralcbr
maralcbr deleted the upstream-review-bumps branch November 17, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant