Skip to content

Commit

Permalink
gen-changelog: change default branch to latest
Browse files Browse the repository at this point in the history
Credit: @zkat
Reviewed-By: @iarna
  • Loading branch information
zkat committed Oct 24, 2016
1 parent 964f2d3 commit 59acd18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ Usage:
node scripts/changelog.js [comittish]
Generates changelog entries in our format as best as its able based on
commits starting at comittish, or if that's not passed, master.
commits starting at comittish, or if that's not passed, latest.
Ordinarily this is run via the gen-changelog shell script, which appends
the result to the changelog.
*/
const execSync = require('child_process').execSync
const branch = process.argv[2] || 'master'
const branch = process.argv[2] || 'latest'
const log = execSync(`git log --reverse --pretty='format:%h %H%d %s (%aN)%n%b%n---%n' ${branch}...`).toString().split(/\n/)

main()
Expand Down

0 comments on commit 59acd18

Please sign in to comment.