Skip to content

gh pr edit fails with 401 when combining --body with --add-label flags #44

Description

@dnyw4l3n13

Source repository

credfeto/scripts

Command

gh pr edit 698 --repo credfeto/scripts --add-assignee @me --add-label "AI-Work" --add-label "Urgent" --body "<multiline body>"

Error

non-200 OK status code: 401 Unauthorized body: "{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/rest\",\"status\":\"401\"}"

Notes

  • Individual gh pr edit --add-label calls succeed
  • Individual gh pr edit --body calls succeed
  • The failure only occurs when combining --body with --add-label and/or --add-assignee in a single command
  • gh pr ready --undo and gh issue comment work correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions