Skip to content

fix(issue): adapt create/close/reopen endpoints to current Gitee API#1

Merged
euxaristia merged 1 commit intoeuxaristia:mainfrom
noodle-bag:fix/gitee-issue-endpoints
Mar 4, 2026
Merged

fix(issue): adapt create/close/reopen endpoints to current Gitee API#1
euxaristia merged 1 commit intoeuxaristia:mainfrom
noodle-bag:fix/gitee-issue-endpoints

Conversation

@noodle-bag
Copy link
Copy Markdown
Contributor

Summary

  • update issue create endpoint to POST /v5/repos/{owner}/issues with repo payload
  • update issue state endpoint to PATCH /v5/repos/{owner}/issues/{number} with repo payload
  • keep list/view/comment endpoints unchanged

Why

Gitee OpenAPI currently exposes:

  • GET /v5/repos/{owner}/{repo}/issues
  • POST /v5/repos/{owner}/issues
  • PATCH /v5/repos/{owner}/issues/{number}

Using old create/state endpoints returns 404 {"message":"project or enterprise"}.

Verification

  • gitee issue create --repo owner/repo ... succeeds
  • gitee issue close --repo owner/repo succeeds
  • gitee issue reopen --repo owner/repo succeeds
  • gitee issue comment and gitee issue view/list remain working

@euxaristia
Copy link
Copy Markdown
Owner

euxaristia commented Mar 4, 2026

Thanks for the contribution, I'll review it and merge it soon

@euxaristia euxaristia merged commit e304bc0 into euxaristia:main Mar 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants