Skip to content

Gitea / Gogs plugin #15738

@alexanderadam

Description

@alexanderadam

This is the sequel of the Sentry plugin issue 145

Summary

Add a plugin, that is similar to the GitLab/GitHub/BitBucket integration, for Gitea/Gogs.

Motivation

Gitea and Gogs are git services like GitLab or Bitbucket. They are popular self-hosted and resource friendly alternatives and you will find various instances in the web.

It is obviously useful to integrate Sentry with Gitea/Gogs for companies, universities and other organisations that are hosting their instances.

Until this is fixed, no Gitea/Gogs user can't fulfil what Sentry is suggesting: linking to a repo.
Screenshot_20191121_093829

Additional Context

Gitea vs GoGS API

Gitea is a fork of GoGS and Gitea has nowadays about 3'000 patches on top of GoGS, more maintainers, more functionality and bugs fixed that are still present in GoGS (that's the reason why I switched once). So if you are running in some API bug, you should keep that in mind.

Testing & developing against an API

Also you can simply test the API integration on the official test instance at https://try.gitea.io/. There you can also find the Swagger API definition. As you can see, JSON and HTTP are protocol wise the only requirements but there are also various ready-to-use Swagger libraries for Python.

If you rather want to use a local Gitea instance, you might want to use the official Docker image (there's also a docker-compose.yml provided that you can use).

There's also more on API authorisation in the documentation.

PS: People reading this, might also be interested in this issue (a Sentry webhook for Gitea).

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions