Skip to content

Commit b40b7d6

Browse files
committed
21.1: fetch commits from remote to build changelog
1 parent eeb20ba commit b40b7d6

4 files changed

Lines changed: 4 additions & 820 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ target
55
firebase-debug.log
66
**.report.html
77
.vscode
8+
changelog.json

build-changelog.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def to_json(*a)
3636
start = Time.now
3737

3838
delim = "¿¿¡¡"
39-
raw = `git log --pretty=format:"%B||%ad||%H||%an#{delim}" --date=short`
39+
branch = `git rev-parse --abbrev-ref HEAD`.strip
40+
raw = `git log origin/#{branch} --pretty=format:"%B||%ad||%H||%an#{delim}" --date=short`
4041
commits = []
4142
raw.split(delim).each do |line|
4243
commit = Commit.new

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)