Skip to content

Commit

Permalink
Only load choices once
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Dec 31, 2016
1 parent 726d7a1 commit 09f5fff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/release.js
Expand Up @@ -95,6 +95,8 @@ const orderCommits = (commits, tags, exists) => {
const questions = []
const predefined = {}

const choices = getChoices(changeTypes, tags)

// Show the latest changes first
commits.reverse()

Expand All @@ -113,7 +115,7 @@ const orderCommits = (commits, tags, exists) => {
name: commit.hash,
message: commit.title,
type: 'list',
choices: getChoices(changeTypes, tags)
choices
})
}

Expand Down

0 comments on commit 09f5fff

Please sign in to comment.