[sentry.io] No commits associated with a release


For the past couple of months, I’ve been unable to get commits from a private GH repo tied to releases.

I’ve configured the repository under the organization and verified that the webhook is functioning properly. It’s been sending payloads successfully since mid-May and receiving HTTP 204 responses.

I’ve used the API via curl:

curl -X POST https://sentry.io/api/0/organizations/<org>/releases/ -H 'Authorization: Bearer <token>' -H 'Content-Type: application/json' -d'
  "version": "<numeric version>",
  "refs": [{
      "commit": "<toHash>",
      "previousCommit": "<fromHash>"
  "projects":["<project slug>"]

as well as the sentry-cli using both --commit and --auto switches:

sentry-cli releases new -p <project slug> <numeric version>
sentry-cli releases set-commits --auto <numeric version>


sentry-cli releases set-commits --commit "<repo>@<fromHash>..<toHash>"

In all cases I’m running sentry-cli from within a local git repository. Consistently from when I first began attempting to configure commits for releases, no attempt actually produces a release with any commit information:

curl -X GET https://sentry.io/api/0/organizations/<org>/releases/<numeric release>/ -H 'Authorization: Bearer <token>'
{"lastDeploy": {"name": "", "url": "", "environment": "<environment>", "dateStarted": null, "dateFinished": "2017-06-26T21:28:08.743Z", "id": "<id>"}, "dateCreated": "2017-06-26T21:28:08.029Z", "lastEvent": null, "shortVersion": "<numeric version>", "authors": [], "owner": null, "newGroups": 0, "data": {}, "projects": [{"slug": "<project slug>", "name": "<project name>"}], "dateReleased": null, "url": null, "deployCount": null, "commitCount": null, "version": "<numeric version>", "firstEvent": null, "lastCommit": null, "ref": null}

In the case of using sentry-cli, I do receive some manner of confirmation(?):

| Repository                         | Revision     |
| <repo>                             | <toHash>     |

The token used for both curl and sentry-cli has the project:releases permission. If it’s significant, this project was creating releases long before the commit integration and deploy features were made available.

I’m hopeful that I can draw feedback on what I’m missing, here, in order to have functional commit integration.


Having the exact same issue. The cli gives me the “confirmation” too.

However, a brief minute after I get an email containing:
Unable to Fetch Commits

We were unable to fetch the commit log for your release (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) due to the following error:

Unauthorized: either your access token was invalid or you do not have access


@blitzz you dont have a valid (e.g. github) identity associated with the user who’s access token you’re using.