Skip to content

Commit

Permalink
21.1: fetch commits from remote to build changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
miermontoto committed Jan 15, 2024
1 parent eeb20ba commit b40b7d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 820 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ target
firebase-debug.log
**.report.html
.vscode
changelog.json
3 changes: 2 additions & 1 deletion build-changelog.rb
Expand Up @@ -36,7 +36,8 @@ def to_json(*a)
start = Time.now

delim = "¿¿¡¡"
raw = `git log --pretty=format:"%B||%ad||%H||%an#{delim}" --date=short`
branch = `git rev-parse --abbrev-ref HEAD`.strip
raw = `git log origin/#{branch} --pretty=format:"%B||%ad||%H||%an#{delim}" --date=short`
commits = []
raw.split(delim).each do |line|
commit = Commit.new
Expand Down
2 changes: 1 addition & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b40b7d6

Please sign in to comment.