go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.37k stars 5.43k forks source link

Implement support for "search/issues" API from GitHub #31155

Open kctang opened 4 months ago

kctang commented 4 months ago

Feature Description

Request for Gitea implement the search/issues API that is supported in GitHub?

One specific use case for this is to allow Gitea to be more compatible with @semantic-release/github that performs semantic releases on GitHub. Details in this (incorrectly) filed bug report (https://github.com/go-gitea/gitea/issues/31154).

Screenshots

No response

kemzeb commented 4 months ago

Thanks for the proposal! It looks to me that we may already support an issue/pr search endpoint:

GET /api/v1/repos/issues/search

See here for the code. However, I don't think it closely follows GitHub's implementation, so it may not play nicely with @semantic-release/github.

kctang commented 4 months ago

This request is to improve compatibility between Gitea and GitHub. It would be nice if @semantic-release/github can "just works" with Gitea.

I am wondering which approach make more sense:

TBH, I am very new to both Gitea and @semantic-release/github so I can't really assess the feasibility.

Hope someone can pick this up.