Skip to content

Commit bbf605a

Browse files
author
Ilya Radchenko
committed
Ignore new tags/branches
Prevents Strider from starting a Job on these, since it doesn't currently handle them.
1 parent b20a12a commit bbf605a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/webhooks.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ function receiveWebhook(emitter, req, res) {
246246
return startFromComment(account, config, req.project, payload, sendJob);
247247
}
248248

249+
// ingore new tags and branches
250+
if (payload.ref_type === 'tag' || payload.ref_type === 'branch') {
251+
return debug('New tags/branches aren\'t currently supported');
252+
}
253+
249254
// otherwise, this is a commit
250255
var result = startFromCommit(req.project, payload, sendJob);
251256

0 commit comments

Comments
 (0)