Skip to content

glab mr subcommands fail with --hostname on self-hosted GitLab #457

Closed

Description

@charlozard

Bug

When using plannotator review with a self-hosted GitLab MR URL, the CLI fails with:

Failed to fetch MR diff: ERROR
Unknown flag: --hostname.

Steps to Reproduce

  1. Authenticate with a self-hosted GitLab instance: glab auth login --hostname gitlab.example.com
  2. Run: plannotator review https://gitlab.example.com/group/project/-/merge_requests/123

Notes (from initial investigation with Claude Code)

The error originates from glab — the --hostname flag is not supported on glab mr subcommands (only on glab api and glab auth). This only affects self-hosted GitLab instances since --hostname is skipped for gitlab.com.

Environment

  • plannotator v0.16.3
  • glab v1.90.0
  • Linux x86_64

Activity

  1. added a commit that references this issue on Apr 1, 2026
    27aa3f2
  2. added a commit that references this issue on Apr 1, 2026
    588b6a4
  3. backnotprop commented on Apr 1, 2026

    @backnotprop
    Owner

    Fixed in v0.16.4. Self-hosted GitLab MR diffs now use the API endpoint instead of glab mr diff, which doesn't support --hostname. See PR #460.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions