Skip to content

Commit

Permalink
Changes the changelog message for Test Flight
Browse files Browse the repository at this point in the history
The message that was being used was formatted for markdown, and Test Flight can't render markdown
  • Loading branch information
pietrocaselani committed May 2, 2019
1 parent 33f1ecc commit ba44fd0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ platform :ios do

pods

changelog = get_changelog
changelog = get_changelog_as_markdown
test_flight_changelog = get_changelog_clean
new_build_number = increment_build_number
version_number = get_version_number(target: 'CouchTracker')

Expand Down Expand Up @@ -74,18 +75,24 @@ platform :ios do
)

upload_to_testflight(
changelog: changelog,
changelog: test_flight_changelog,
skip_waiting_for_build_processing: false
)
end

private_lane :get_changelog do
private_lane :get_changelog_as_markdown do
link_to_commit = 'http://github.com/pietrocaselani/CouchTracker/commit/%H'
log_format = "* %s [view commit](#{link_to_commit})"
tag = `git describe --tags --abbrev=0`.chomp
`git log #{tag}...HEAD --pretty=format:"#{log_format}"`.chomp ||= ''
end

private_lane :get_changelog_clean do
log_format = '* %s'
tag = `git describe --tags --abbrev=0`.chomp
`git log #{tag}...HEAD --pretty=format:"#{log_format}"`.chomp ||= ''
end

private_lane :bump_and_commit do |options|
new_build_number = options[:build_number]
changelog = options[:changelog]
Expand Down

0 comments on commit ba44fd0

Please sign in to comment.