Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: WeTransfer/WeTransfer-iOS-CI
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9f610636865411fc0355f6650adc7dd7bb489a57
Choose a base ref
...
head repository: WeTransfer/WeTransfer-iOS-CI
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ea38f283c557acbbe8a370bf19398d7a717f3e00
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Jan 19, 2022

  1. Copy the full SHA
    7f3e627 View commit details

Commits on Jan 25, 2022

  1. Merge pull request #122 from WeTransfer/feature/optimise-requests

    Reuse changelog created at release
    AvdLee authored Jan 25, 2022
    Copy the full SHA
    ea38f28 View commit details
Showing with 13 additions and 9 deletions.
  1. +13 −9 Fastlane/deployment_lanes.rb
22 changes: 13 additions & 9 deletions Fastlane/deployment_lanes.rb
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@

require 'spaceship'
require 'uri'
require 'json'

desc 'Creates a new release candidate'
desc ''
@@ -59,14 +60,15 @@
# Create a new GitHub release
last_non_candidate_tag = latest_github_non_candidate_tag
release_title = "#{tag_name} - App Store Release Candidate"
release_output = sh("gitbuddy release -l #{last_non_candidate_tag} -b develop --skip-comments --use-pre-release --target-commitish develop --tag-name #{tag_name} --release-title '#{release_title}'")
release_url = URI.extract(release_output).find { |url| url.include? 'releases/tag' }
puts "Created release with URL: #{release_url}"
release_output = sh("gitbuddy release -l #{last_non_candidate_tag} -b develop --skip-comments --json --use-pre-release --target-commitish develop --tag-name #{tag_name} --release-title '#{release_title}'")
release_json = JSON.parse(release_output)

# Create the change log
changelog = sh("gitbuddy changelog -b develop -s #{last_non_candidate_tag}")
release_url = release_json['url']
changelog = release_json['changelog']
stripped_changelog = strip_markdown_url(input: changelog)

puts "Created release with URL: #{release_url}"

begin
testflight(
beta_app_review_info: {
@@ -164,13 +166,15 @@

release_latest_tag = is_hotfix ? latest_release_tag : last_non_candidate_tag
release_base_branch = is_hotfix ? 'main' : 'develop'
release_output = sh("gitbuddy release -l #{release_latest_tag} -b #{release_base_branch} -c '../Changelog.md' --target-commitish #{target_commitish} --tag-name #{tag_name} --release-title '#{release_title}' --verbose")
release_url = URI.extract(release_output).find { |url| url.include? 'releases/tag' }
puts "Created release with URL: #{release_url}"
release_output = sh("gitbuddy release -l #{release_latest_tag} -b #{release_base_branch} -c '../Changelog.md' --target-commitish #{target_commitish} --tag-name #{tag_name} --release-title '#{release_title}' --verbose --json")
release_json = JSON.parse(release_output)

changelog = sh("gitbuddy changelog -b #{release_base_branch} -s #{release_latest_tag}")
release_url = release_json['url']
changelog = release_json['changelog']
stripped_changelog = strip_markdown_url(input: changelog)

puts "Created release with URL: #{release_url}"

# Push the updated changelog.
sh('git commit -a -m "Created a new release"')
sh("git push origin #{branch_name}")