Skip to content

submit: export CheckStaleBases for external callers#1177

Closed
ed-irl wants to merge 2 commits into
mainfrom
submit-stale-base-export
Closed

submit: export CheckStaleBases for external callers#1177
ed-irl wants to merge 2 commits into
mainfrom
submit-stale-base-export

Conversation

@ed-irl

@ed-irl ed-irl commented May 19, 2026

Copy link
Copy Markdown
Collaborator

Add public StaleBase type and CheckStaleBases function that wraps the
existing internal staleBaseCandidates discovery and forge-query logic.

Used by external commands (branch merge in the immediately stacked PR)
that need to perform the same pre-flight check submit does, without
duplicating the candidate-discovery logic.

The internal API used by submit itself is unchanged; this only adds new
exports.

ed-irl added 2 commits May 18, 2026 07:47
Add cycle detection to survivingAncestor so that if deleted branches
form a cycle in their base references, the function falls back to
trunk instead of looping forever.
Add public StaleBase type and CheckStaleBases function that wraps the
existing internal staleBaseCandidates discovery and forge-query logic.

Used by external commands (branch merge in the immediately stacked PR)
that need to perform the same pre-flight check submit does, without
duplicating the candidate-discovery logic.

The internal API used by submit itself is unchanged; this only adds new
exports.
@ed-irl

ed-irl commented May 19, 2026

Copy link
Copy Markdown
Collaborator Author

@abhinav abhinav force-pushed the sync-survivingancestor-loop branch 2 times, most recently from e4b5f2e to ddbdacb Compare May 23, 2026 18:50
Base automatically changed from sync-survivingancestor-loop to main May 23, 2026 18:58
@abhinav

abhinav commented May 31, 2026

Copy link
Copy Markdown
Owner

Superseded by #1211

@abhinav abhinav closed this May 31, 2026
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.

2 participants