Skip to content

chore: Store PR identity in item.metadata at open-time instead of reconstructing branch/marker later - #623

Merged
getappz merged 2 commits into
masterfrom
task/196-store-pr-identity-in-item-metadata-at-op
Aug 27, 2026
Merged

chore: Store PR identity in item.metadata at open-time instead of reconstructing branch/marker later#623
getappz merged 2 commits into
masterfrom
task/196-store-pr-identity-in-item-metadata-at-op

Conversation

@getappz

@getappz getappz commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Item work: PR identity (number+branch) now persisted into item metadata on push_and_open_pr (found-existing and created-new paths) without clobbering other metadata keys; is_pr_merged/pr_ci_status check metadata.pr.number first via pulls::get, falling back to branch heuristic only when absent. Verified: cargo build --lib clean, 21/21 worktree:: tests pass (incl. #191 regression + merge-no-clobber tests), clippy clean on worktree.rs. Not committed.


Opened by claude-code on flared:51bb8de6c33b for item #196 via agentflare.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 38 minutes.

View limit details

Limit details: You’ve used the included review currently available. Your 62 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 10bcc44c-dd5c-44bf-856b-c34dd25357fc

📥 Commits

Reviewing files that changed from the base of the PR and between a6beb39 and d1ce94a.

📒 Files selected for processing (1)
  • src/worktree.rs

Comment @coderabbitai help to get the list of available commands.

…ta on push_and_open_pr (found-existing and created-new paths) without clobbering other metadata keys; is_pr_merged/pr_ci_status check metadata.pr.number first via pulls::get, falling back to branch heuristic only when absent. Verified: cargo build --lib clean, 21/21 worktree:: tests pass (incl. #191 regression + merge-no-clobber tests), clippy clean on worktree.rs. Not committed.

Agentflare-Agent: claude-code_2-1-245_agent
Agentflare-Branch: task/196-store-pr-identity-in-item-metadata-at-op
Agentflare-Item: 196-store-pr-identity-in-item-metadata-at-op
@getappz
getappz force-pushed the task/196-store-pr-identity-in-item-metadata-at-op branch from 6e2a839 to 5ef1832 Compare August 27, 2026 13:19
Agentflare-Agent: claude-code
Agentflare-Branch: task/196-store-pr-identity-in-item-metadata-at-op
Agentflare-Item: 196
Agentflare-Session: e77fc32e-33d0-4884-ab55-fdda48fe45fd
@getappz
getappz merged commit 5107f4a into master Aug 27, 2026
16 checks passed
@getappz
getappz deleted the task/196-store-pr-identity-in-item-metadata-at-op branch August 27, 2026 13:53
getappz added a commit that referenced this pull request Aug 28, 2026
…'s update-branch API (#630)

Follow-up to the review-sweep BEHIND friction hit repeatedly this
session (PRs #621, #623, #627 all needed a manual git merge
origin/master before they could merge). run_review_sweep now checks
PrCiStatus::Behind (GitHub's own mergeable_state == "behind" -- mergeable,
no conflict, just missing base-branch commits) before ever fetching CI
check runs for that PR, and calls pulls::update_branch (the same
server-side operation the PR page's own "Update branch" button
triggers) to bring it current, letting CI re-run naturally.

Entirely server-side: no local worktree/git state touched, so it can't
race a concurrently-dispatched job still pushing to the same branch the
way a local git merge would.

Agentflare-Agent: claude-code
Agentflare-Branch: task/review-sweep-update-branch
Agentflare-Session: e77fc32e-33d0-4884-ab55-fdda48fe45fd

Co-authored-by: shiva <shiva@gosysinfo.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant