From dfc1c77d8720475b9a89f4e619675dbf3db85c0d Mon Sep 17 00:00:00 2001 From: Jim Cockburn Date: Wed, 11 Sep 2019 15:19:21 +0100 Subject: [PATCH] configurable autorelease, default false --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index eb7f32f4b..1bb15978b 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,8 @@ module.exports = app => { categories: [], 'exclude-labels': [], replacers: [], - 'sort-direction': SORT_DIRECTIONS.descending + 'sort-direction': SORT_DIRECTIONS.descending, + 'auto-release': false } const config = Object.assign( defaults, @@ -35,7 +36,6 @@ module.exports = app => { replacers: config.replacers }) config['sort-direction'] = validateSortDirection(config['sort-direction']) - const autoRelease = false // GitHub Actions merge payloads slightly differ, in that their ref points // to the PR branch instead of refs/heads/master @@ -98,7 +98,7 @@ module.exports = app => { releaseId = draftRelease.id } - if (autoRelease) { + if (config['auto-release']) { context.log('Autoreleasing!') const lastVersion = getVersionInfo(lastRelease) // TODO template depending on PR labels