Files
u-boot/tools
Simon Glass ddc50f4b02 pickman: Auto-detect when MRs need rebasing
Check GitLab merge request status to detect when a rebase is needed,
even if there are no review comments. This handles the case where
GitLab shows "Merge request must be rebased" or "Merge conflicts must
be resolved".

Add has_conflicts and needs_rebase fields to PickmanMr namedtuple,
populated from GitLab's detailed_merge_status and diverged_commits_count
fields.

Update process_mr_reviews() to trigger the agent for rebase when needed,
even without review comments. The agent prompt is adjusted based on
whether it needs to handle comments, rebase, or both.

Also:
- Pass MR description to agent for context from previous work
- After processing reviews, restore the original branch
- Use -o ci.skip when pushing to avoid duplicate pipelines

Series-to: concept
Series-links: 2:81 1:80
Cover-letter:
pickman: Improve handling of rebasing
This little series includes a few patches to ensure that rebases are
made against -master and detection for needing a rebase without the user
having explicitly request it.

It also passes the previous context to the agent when handling reviews,
which should improve its response.
END

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
Series-version: 2
2025-12-17 12:37:03 -07:00
..
2025-07-26 23:55:02 +12:00
2024-10-21 20:51:23 -06:00
2024-07-15 12:12:18 -06:00
2024-09-12 17:35:37 +02:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2025-08-04 14:39:59 -06:00
2024-07-15 12:12:18 -06:00