Skip to content

fix(repos): onboard requires checks of a merged template pull request - #7477

Merged
dan-petty merged 2 commits into
mainfrom
fix/7476-onboard-merged-template-pr-checks
Nov 27, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7476-onboard-merged-template-pr-checks

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

When a repository holds each template file, row 9 of devops repos onboard read the check runs of the newest template pull request, merged included, and row 10 required each name that ended success. The head of a merged pull request ran the workflows of that time: on 2026-11-27 dan-petty/devtools got the required check Semantic PR title from dan-petty/devtools#99, no workflow reports that name after dan-petty/devtools#115, and each new pull request of devtools waits on it.

Row 9 now reads the check runs of the open template pull request only. A merged or closed one gives row 10 no check name and no check to drop, so row 10 keeps the live checks and adds the checks of the baseline and of github/repository.yaml. The first confirmed run still requires the checks of the pull request that row 9 opens (D3), and the drop of a check that only skipped (#7318) still works while that pull request is open.

Closes #7476

Change: openspec/changes/archive/2026-11-27-7476-onboard-merged-template-pr-checks/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/repos The devops repos commands and worktrees labels Nov 27, 2026
Row 9 reads the check runs of the open template pull request only. A merged or closed one gives row 10 no check name and no check to drop, so a later run keeps the live checks.

Refs #7476
Change: `openspec/changes/archive/2026-11-27-7476-onboard-merged-template-pr-checks/`
@dan-petty
dan-petty force-pushed the fix/7476-onboard-merged-template-pr-checks branch from 2924371 to 7ab9ecb Compare November 27, 2026 23:02
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for #7476 (agent run, 2026-11-27):

  • Red on the base (1068e7d15): uv run devops ci test tests/github/onboard/test_onboard_rows.py gave 3 failed, 63 passed. Each case of test_a_template_pull_request_that_is_not_open_gives_row_10_no_check failed: row 10 sent PUT /repos/example-org/app/rulesets/7 with ruleset main: required checks PR title / Semantic PR title, Semantic PR title (merged and closed cases) or ; dropped K8s (merged skipped case).
  • Green on the head: uv run devops ci test tests/github/onboard/ tests/commands/test_repos_onboard.py tests/commands/test_infra_onboard.py gave 140 passed.
  • The Fail-to-Pass Check of head 7ab9ecb passed: https://github.com/dan-petty/devops-cli/actions/runs/46080157389/job/140777104908
  • Read-only run, uv run devops repos onboard dan-petty/devtools --plan --only 9,10 from the head: row 9 present, row 10 present, no change line. The live ruleset main of devtools still requires Semantic PR title, so the plan keeps it as a live check; a person removes it from the ruleset.

@dan-petty
dan-petty marked this pull request as ready for review November 27, 2026 23:11
@dan-petty
dan-petty merged commit 46b9c95 into main Nov 27, 2026
28 checks passed
@dan-petty
dan-petty deleted the fix/7476-onboard-merged-template-pr-checks branch November 27, 2026 23:15
dan-petty-release Bot added a commit that referenced this pull request Nov 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.229.5](v0.229.4...v0.229.5)
(2026-11-27)


### Bug Fixes

* **ai:** skip unchanged files in a run with no index cache
([#7478](#7478))
([60a3540](60a3540))
* **repos:** onboard requires checks of a merged template pull request
([#7477](#7477))
([46b9c95](46b9c95))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/repos The devops repos commands and worktrees type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(repos): onboard requires checks of a merged template pull request

1 participant