diff --git a/scripts/attempt-backport.js b/scripts/attempt-backport.js index 32fe2f8c..b937c966 100644 --- a/scripts/attempt-backport.js +++ b/scripts/attempt-backport.js @@ -19,6 +19,8 @@ module.exports = function (app) { function handlePrUpdate (event, owner, repo) { if (!~enabledRepos.indexOf(repo)) return + if (event.pull_request.base.ref !== 'master') return + const prId = event.number const options = { owner, repo, prId, logger: event.logger } @@ -31,7 +33,7 @@ module.exports = function (app) { } // to trigger polling manually - app.get('/pr/:owner/:repo/:id', (req, res) => { + app.get('/attempt-backport/pr/:owner/:repo/:id', (req, res) => { const owner = req.params.owner const repo = req.params.repo const prId = parseInt(req.params.id, 10)