Skip to content

gh pr edit returns an error with --add-project #10681

@davinkevin

Description

@davinkevin

Describe the bug

I'm not able to use gh pr edit --add-project "anything" anymore, since this afternoon (EU time).

Image

And my project used for this is V2 compliant, see the icon:

Image

Affected version

gh version 2.69.0 (2025-03-19)
https://github.com/cli/cli/releases/tag/v2.69.0

Tested with version 2.67 too, same issue.

Steps to reproduce the behavior

  1. In a project within an organization, with at least one PR and one Project
  2. run this command on the PR mentioned above: gh pr edit <pr_id> --add-project "project_name"
  3. See error
error fetching organization projects (classic): GraphQL: Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. (organization.projects.nodes.0), Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. (organization.projects.nodes.1), Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. (organization.projects.nodes.2), Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. (organization.projects.nodes.3)

Expected vs actual behavior

I expect the PR to be updated, as described in the documentation

Logs

Paste the activity from your command line. Redact if needed.

⣾* Request at 2025-03-26 17:56:09.332114 +0100 CET m=+0.043415293
* Request to https://api.github.com/graphql
⢿* Request took 410.302291ms
* Request at 2025-03-26 17:56:09.744357 +0100 CET m=+0.455659209
* Request to https://api.github.com/graphql
⣯* Request took 383.43725ms
⣾* Request at 2025-03-26 17:56:10.12827 +0100 CET m=+0.839571834
* Request to https://api.github.com/graphql
* Request at 2025-03-26 17:56:10.128317 +0100 CET m=+0.839618834
* Request to https://api.github.com/graphql
* Request at 2025-03-26 17:56:10.128344 +0100 CET m=+0.839646293
* Request to https://api.github.com/graphql
* Request at 2025-03-26 17:56:10.12827 +0100 CET m=+0.839571834
* Request at 2025-03-26 17:56:10.128364 +0100 CET m=+0.839665626
* Request to https://api.github.com/graphql
* Request to https://api.github.com/graphql
⣻* Request took 248.469ms
* Request took 352.49675ms
* Request took 352.472292ms
⡿* Request took 549.782958ms
⣻* Request took 1.250581084s
error fetching organization projects (classic): GraphQL: Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. (organization.projects.nodes.0), Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. (organization.projects.nodes.1), Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. (organization.projects.nodes.2), Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. (organization.projects.nodes.3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions