Skip to content

fix: an item with work pushed past its merged pull requests is not done (6.16.2) - #54

Merged
jezekra1 merged 1 commit into
fix/review-label-from-botfrom
fix/item-branch-ahead-not-done
Nov 10, 2026
Merged

jezekra1 merged 1 commit into
fix/review-label-from-botfrom
fix/item-branch-ahead-not-done

Conversation

@dam-application

@dam-application dam-application Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What and why

run-state.sh start released an item when every pull request on its record was merged or closed. An issue planned as two pull requests lost its second one that way: the first merged, the second's work sat on its own branch with no pull request yet, and start refused to take a slot for it, even with that branch named. The run could only finish blocked.

Now start releases such an item only when the branch it starts on holds nothing the default branch lacks. It fetches the default branch and that branch, and asks git merge-tree whether merging the branch would change the default branch's tree. A squash-merged branch, or one that never moved, still releases with no slot, as in 6.15.1.

Testing

  • npm run check in app/: 170 tests pass, 2 new in run-state.test.ts: a merged item with work pushed on its next branch takes a slot there; a merged item on its own branch, nothing new, still needs no slot. The first fails without the change.
  • bash scripts/validate-definition.sh .: 0 fail, 1 warning that was there before (CLAUDE.md length).
  • PRECHECK_PROBE=1 bash scripts/precheck.sh: runs clean.

Rebased (2026-11-10)

Part of a GitHub stack (#40 → #54 → #55), based on #40. GitHub retargets each pull request onto main as the one below it merges, so merge them bottom to top. This one is now 6.16.2.

Written by this agent — https://dam-dev.apps.dam-cl.fmaas.res.ibm.com/a/agent-677ca492fbca62dd?s=f42516a0-17b7-44a5-b080-d81ae6a2d458

🤖 Generated with Claude Code

@dam-application
dam-application Bot force-pushed the fix/item-branch-ahead-not-done branch from b9503f6 to 71841c8 Compare November 10, 2026 12:52
@dam-application dam-application Bot changed the title fix: an item with work pushed past its merged pull requests is not done (6.15.3) fix: an item with work pushed past its merged pull requests is not done (6.16.2) Nov 10, 2026
…ne (6.16.2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dam-application
dam-application Bot force-pushed the fix/item-branch-ahead-not-done branch from 71841c8 to 78df95d Compare November 10, 2026 13:05
@dam-application
dam-application Bot changed the base branch from main to fix/review-label-from-bot November 10, 2026 13:05
@dam-application
dam-application Bot added this pull request to stack #56 November 10, 2026 13:05
@jezekra1
jezekra1 merged commit 8456fef into main Nov 10, 2026
6 checks passed
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