Skip to content

gh repo edit --add-topic returns 404 on owned personal repo #11389

@sergei-studennikov

Description

@sergei-studennikov

I'm using the latest GitHub CLI and trying to add topics to my own personal repository using this command:

gh repo edit studennikov-serg/Bridge2Hacker --add-topic android

or via API:

gh api \
  -X PUT \
  -H "Accept: application/vnd.github.mercy-preview+json" \
  repos/studennikov-serg/Bridge2Hacker/topics \
  -f names='["android"]'

In both cases, I get:

Error: HTTP 404: Not Found (https://api.github.com/repos/studennikov-serg/Bridge2Hacker/topics)
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/repos/repos#replace-all-repository-topics","status":"404"}

Details:

Expected behavior:
The topic should be added successfully.

Actual behavior:
GitHub API returns 404 when trying to access the topics endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-reporelating to the gh repo commandneeds-triageneeds to be reviewedstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions