Skip to content

gh pr edit --add-label is broken after 2.39.0 #8330

@Lutzifer

Description

@Lutzifer

Describe the bug

gh version 2.39.0 (2023-11-06)
https://github.com/cli/cli/releases/tag/v2.39.0

Adding a label to a PR is broken in 2.39.0

Steps to reproduce the behavior

  1. Type this 'gh pr edit 298 --add-label "iOS PR" '
  2. View the output
GraphQL: Field 'status' doesn't exist on type 'ProjectV2Item' (query PullRequestProjectItems.repository.pullRequest.projectItems.nodes.status)
  1. See error
GraphQL: Field 'status' doesn't exist on type 'ProjectV2Item' (query PullRequestProjectItems.repository.pullRequest.projectItems.nodes.status)

Expected vs actual behavior

The label should be set and no error should be printed.

Logs

GraphQL: Field 'status' doesn't exist on type 'ProjectV2Item' (query PullRequestProjectItems.repository.pullRequest.projectItems.nodes.status)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-prrelating to the gh pr commandpriority-1Affects a large population and inhibits work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions