Same problem here. We are using the release hook which says “The release webhook accepts the same parameters as the “Create a new Release” API endpoint”. So we’re doing this in our gulpfile:
gulp.task('deploy:track', ['build'], function(cb) {
git.branch(function (branch) {
git.long(function (revision) {
rp({
method: 'POST',
uri: 'https://sentry.io/api/hooks/release/builtin/…/…/',
body: {
version: revision,
refs: [{
commit: revision,
repository: 'ZipBooks/zipbooks',
}],
},
json: true // Automatically stringifies the body to JSON
}).then(function (_parsedBody) {
console.log(`sentry notified of deploy: ${branch}:${revision}`)
cb()
})
.catch(function (err) {
console.log('sentry notify of deploy failed: ' + JSON.stringify(err))
cb()
})
})
})
})
and no commits show up:
