Gitea API 1.20.0+dev-833-g040970c32 failed on create repository
  "message": "token does not have required scope: repo",
  "url": ""

So I tried

then no error i.e. no output but nothing happened.
Gitea API 1.17.x was fine.

Please tell me how to call api to create repository.

This is intended for the development branch. The change was introduced in Temporarily disable PATs until next release by kdumontnu · Pull Request #24527 · go-gitea/gitea · GitHub and will be fixed when Redesign Scoped Access Tokens by jackHay22 · Pull Request #24767 · go-gitea/gitea · GitHub is merged, which is expected to be completed in time for the 1.20.0-rc0 release in ~2 weeks.

You can read more about the proposed changes and comment here: [Proposal] Redesign Scoped Personal Access Tokens (PATs) / Fine Grained Personal Access Tokens · Issue #24501 · go-gitea/gitea · GitHub.

1 Like

Thank you, jake.
I will wait for 1.20-rc0.

1 Like