Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook for Sentry releases #7548

Closed
alexanderadam opened this issue Jul 21, 2019 · 2 comments
Closed

Webhook for Sentry releases #7548

alexanderadam opened this issue Jul 21, 2019 · 2 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@alexanderadam
Copy link

alexanderadam commented Jul 21, 2019

Release webhook

Sentry supports release creation via webhooks (In Sentry go to the project > releases > scroll to webhook).
webhooks

This webhook just needs the URL and JSON structure like this (there are more parameters that might be interesting (i.e. authors, commitCount and shortVersion [for the short hash]) in the official API)

{
  "author_name": "Author Name",
  "version": "2da95dfb052f477380608d59d32b4ab9",
  "refs": [{
    "repository":"owner-name/repo-name",
    "commit":"2da95dfb052f477380608d59d32b4ab9",
    "previousCommit":"1e6223108647a7bfc040ef0ca5c92f68ff0dd993"
  }],
 "projects":["my-project","my-other-project"]
}

projects is something that has to be added manually though because these are the names of related Sentry projects.

Commit webhook

Similarly to the release webhook it would be good being able to push raw commit information as well:

{
  "commits": [
    {
    "patch_set": [
      {"path": "path/to/added-file.html", "type": "A"},
      {"path": "path/to/modified-file.html", "type": "M"},
      {"path": "path/to/deleted-file.html", "type": "D"}
    ],
    "repository": "owner-name/repo-name",
    "author_name": "Author Name",
    "author_email": "author_email@example.com",
    "timestamp": "2018-09-20T11:50:22+03:00",
    "message": "This is the commit message.",
    "id": "8371445ab8a9facd271df17038ff295a48accae7"
    }
  ]
}

PS: maybe it would make sense to support a generic template based solution for webhooks like proposed in issue 1089?

PPS: A gitea plugin for Sentry would be nice as well. So it would be nice considering a Sentry PR if you are fluent in Python. 😉

@alexanderadam alexanderadam changed the title Webhook for Senry releases Webhook for Sentry releases Jul 21, 2019
@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jul 21, 2019
@MrMoronIV
Copy link

Is this something that has been implemented? Would be very interested to use this for my local sentry installation!

@lunny
Copy link
Member

lunny commented Sep 17, 2019

@MrMoronIV Nobody are working on this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

4 participants