Search code examples
netbeansissue-trackinggitea

Access gitea issues from netbeans?


Is there a way to access issues on a Gitea server from Netbeans (current 11.3)? I've tried to use the github connector but this doesn't work (OAuth not working, didn't dug into logs).


Solution

  • Unfortunately, currently (NetBeans 11.3) there is not a ready solution to work with ISSUES and PR on the Gittea server using NetBeans.

    The GitHub Issues Plugin is the closest that we have for now. The plugin uses the egit project to connect to GitHub using the GitHub API. The egit project is compatible with GitHub API version 3 but was not tested with Gittea API.

    I checked the source code of both projects. There are some issues with compatibility for example:

    • Egit uses /api/v3 path (see source) but Gittea uses /api/v1 path (see api). It is the main reason your OAuth was not working.
    • For searching issues, the plugin uses /search/issues (see source) path but gittea uses /repos/issues/search (see api)

    After fixing this two I was able to connect to try.gitea.io/api/v1 using the GitHub Issues Plugin:

    enter image description here

    but it worked only partially. I could log in to Gittea and create issues using the modified plugin but couldn't search for issues. So more work should be done to adapt the plugin with working with try.gitea.io/api/v1 API.

    If you really need one I think you could after some work adapt the GitHub Issue Plugin to work with GitTea. Or you could ask the author for adaptation.