Skip to content

feat(scripts-git-fix-orphans): ✨ list merge requests through the GitLab API - #107

Draft
tomgrv wants to merge 1 commit into
developfrom
ccr-df368c1e-gn1q4f
Draft

tomgrv wants to merge 1 commit into
developfrom
ccr-df368c1e-gn1q4f

Conversation

@tomgrv

@tomgrv tomgrv commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • git-fix-orphans: when GITLAB_CI=true, find the branches that ever had a merge request through the GitLab REST API (curl + jq, paged, 1000 max) instead of gh pr list, and with -p push the renames with GITLAB_TOKEN (project access token, api and write_repository scopes). The GitHub path is unchanged; if the API cannot be read, nothing is renamed.
  • 2 new bats tests (curl stubbed, push redirected to the local bare repo); README section.

Needed by tomgrv/actions/prefix-orphan-branches on GitLab (tomgrv/devcontainer-features#245).

Not verified

  • Not run against a real GitLab project.

Generated by Claude Code

Inside GitLab CI, find the branches that ever had a merge request with
curl instead of gh, and push the renames with a project access token.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XWCx6ifQFkyqUFNvkGPo4o
@tomgrv tomgrv changed the title feat(git-fix-orphans): ✨ list merge requests through the GitLab API feat(scripts-git-fix-orphans): ✨ list merge requests through the GitLab API Oct 29, 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