Skip to content

Commit

Permalink
Update extract change log action
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Sep 14, 2016
1 parent a100f4b commit a670632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fastlane/actions/extract_current_change_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.run(params)
title = "#{version}"
title = title + " - #{data["name"]}" if (data["name"] and not data["name"].empty?)

return {:title => title, :version => version, :add => data["add"], :fix => data["fix"]}
return {:title => title, :version => version, :add => data["add"], :fix => data["fix"], :remove => data["remove"]}
end

#####################################################
Expand Down
3 changes: 3 additions & 0 deletions fastlane/actions/update_change_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ def self.run(params)

fix = log[:fix].map { |i| "* #{i}" }.join("\n") unless log[:fix].nil?
des = des + "#### Fix\n#{fix}\n\n" unless fix.nil? or fix.empty?

remove = log[:remove].map { |i| "* #{i}" }.join("\n") unless log[:remove].nil?
des = des + "#### Remove\n#{remove}\n\n" unless remove.nil? or remove.empty?

log_text = log_text + des

Expand Down

0 comments on commit a670632

Please sign in to comment.