From ced51fe1731283e93089aadc05152b63c0ea3e5a Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Thu, 4 Aug 2016 12:45:47 +0200 Subject: [PATCH] feat(release): add --no-changelog option --- README.md | 3 +++ tasks/release/changelog.js | 5 +++++ tasks/release/github.js | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 8971e8c3c..bbf0ed830 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,9 @@ You can generate a changelog for all versions by using `--first` $ aegir-relase --first ``` +You can skip all changelog generation and the github release by passing +in `--no-changelog`. + ## Other Notes There is a badge. diff --git a/tasks/release/changelog.js b/tasks/release/changelog.js index 5e0ac570e..4a12e4646 100644 --- a/tasks/release/changelog.js +++ b/tasks/release/changelog.js @@ -3,6 +3,11 @@ const $ = require('gulp-load-plugins')() module.exports = (gulp, done) => { + if ($.util.env.changelog === false) { + $.util.log('Skipping changelog generation') + return done() + } + const releaseCount = $.util.env.first ? 0 : 1 return gulp.src('CHANGELOG.md') diff --git a/tasks/release/github.js b/tasks/release/github.js index 3b7ca1cde..c555df5e0 100644 --- a/tasks/release/github.js +++ b/tasks/release/github.js @@ -4,6 +4,11 @@ const $ = require('gulp-load-plugins')() const conventionalGithubReleaser = require('conventional-github-releaser') module.exports = (gulp, done) => { + if ($.util.env.changelog === false) { + $.util.log('Skipping github release') + return done() + } + const token = process.env.GH_TOKEN || $.util.env.token if (!token) {