Skip to content

Commit 520a13e

Browse files
committed
Improve Notes attached to App Center builds
1 parent 58ff5ce commit 520a13e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fastlane/lanes/build.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,21 @@ def build_and_upload_installable_build(scheme:,output_app_name:,appcenter_app_na
328328
)
329329

330330
# Upload to App Center
331+
commit = ENV.fetch('BUILDKITE_COMMIT', 'Unknown')
332+
pr = ENV.fetch('BUILDKITE_PULL_REQUEST', nil)
333+
331334
appcenter_upload(
332335
api_token: get_required_env('APPCENTER_API_TOKEN'),
333336
owner_name: APPCENTER_OWNER_NAME,
334337
owner_type: APPCENTER_OWNER_TYPE,
335338
app_name: appcenter_app_name,
336339
file: lane_context[SharedValues::IPA_OUTPUT_PATH],
337340
dsym: lane_context[SharedValues::DSYM_OUTPUT_PATH],
341+
release_notes: <<~NOTES
342+
- Branch: \`#{ENV.fetch('BUILDKITE_BRANCH', 'Unknown')}\`\n
343+
- Commit: [#{commit[0...7]}](https://github.tumblr.net/#{GITHUB_REPO}/commit/#{commit})\n
344+
- Pull Request: [\##{pr}](https://github.tumblr.net/#{GITHUB_REPO}/pull/#{pr})\n
345+
NOTES
338346
destinations: 'Collaborators',
339347
notify_testers: false
340348
)

0 commit comments

Comments
 (0)