Skip to content

app/: closing and reopening a branch's builds (sc-8900) - #85

Merged
ndbroadbent merged 1 commit into
mainfrom
laravel-forge-domain
Dec 2, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
laravel-forge-domain

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Part of sc-8900 (data side). Stacked on #75.

What it adds: builds::close_branch(project_id, branch, why) and builds::reopen_branch(project_id, branch).

  • Close: a pull request closed without merging (why is pull_request), or its branch deleted (branch_deleted), closes the branch's builds that are waiting for review, with today's warning.
  • Reopen: reopening the pull request brings back the newest closed build, without that warning.
  • Both are idempotent and fire BuildChanged.

What calls them: subdomains' forge listeners call these once #74 is on main.

  • BranchClosed → close_branch.
  • BranchReopened → reopen_branch.
  • PullRequestMerged → baselines::record_merge.
  • Subdomains' hourly sync sends BranchClosed { why: "branch_deleted" } for branches the forge no longer has (sc-8797).
  • Subdomains own open-source and visibility (app/: the hourly forge sync for GitHub (sc-8900) #77).

Tests: tests/branches.rs.

@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #400 · 333 unchanged · no changes

This PR vs base: 22 changed, 2 added since #344, across 6 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent force-pushed the laravel-read branch 2 times, most recently from 3e184b9 to b00fdbd Compare December 2, 2026 20:52
@ndbroadbent
ndbroadbent deleted the branch laravel-read December 2, 2026 21:02
@ndbroadbent ndbroadbent closed this Dec 2, 2026
@ndbroadbent ndbroadbent reopened this Dec 2, 2026
@ndbroadbent
ndbroadbent changed the base branch from laravel-read to main December 2, 2026 21:03
… (a pull request closed without merging, or the branch deleted) closes its builds waiting for review with today's warning; reopen_branch brings back the newest; both idempotent and fire BuildChanged; for the forge listeners once #74 lands
@ndbroadbent
ndbroadbent merged commit 081809c into main Dec 2, 2026
11 checks passed
@ndbroadbent
ndbroadbent deleted the laravel-forge-domain branch December 2, 2026 21:56
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