Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
feat: 🎸 use "closes" keywoard to close GitHub issues
Browse files Browse the repository at this point in the history
Last "issues" question will emit "Closes:" instead of "Issues:" text,
which should trigger GitHub to actually close the issues.

BREAKING CHANGE: "closes" keyboard is used instead of "issues", which will close GitHub
issues.

Closes: streamich#123
  • Loading branch information
streamich committed Mar 11, 2019
1 parent 9321454 commit bb89aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/formatCommitMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const formatCommitMessage = (state) => {
}

if (issues) {
msg += '\n\nIssues: ' + issues;
msg += '\n\nCloses: ' + issues;
}

return msg;
Expand Down
2 changes: 1 addition & 1 deletion lib/questions/issues.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exports.createQuestion = () => ({
message: 'Issues this commit closes:',
message: 'Issues this commit closes, e.g #123:',
name: 'issues',
type: 'input'
});

0 comments on commit bb89aec

Please sign in to comment.