Skip to content

Commit c96ea40

Browse files
Copilotmokagio
andcommitted
Move pull_request_number to top of Fastfile
Co-authored-by: mokagio <[email protected]>
1 parent 9ce0ff5 commit c96ea40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fastlane/Fastfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ WORKSPACE_PATH = File.join(PROJECT_ROOT_FOLDER, 'WooCommerce.xcworkspace')
2929
FIREBASE_APP_ID = '1:124902176124:ios:02259de1e7c42b291620f9'
3030
FIREBASE_TESTERS_GROUP = 'woocommerce-ios---prototype-builds'
3131

32+
# Buildkite sets this env var to the PR number if on a PR, but to 'false' (and not nil) if not on a PR
33+
pull_request_number = ENV['BUILDKITE_PULL_REQUEST']&.then { |n| n == 'false' ? nil : Integer(n) }
34+
3235
BUILDKITE_RELEASE_PIPELINE = 'release-builds.yml'
3336
IOS_LOCALES = %w[ar-SA de-DE en-US es-ES fr-FR he id it ja ko nl-NL pt-BR ru sv tr zh-Hans zh-Hant].freeze
3437
SIMULATOR_VERSION = '18.5' # For screenshots
@@ -1526,9 +1529,6 @@ TEST_ANALYTICS_ENVIRONMENT = %w[
15261529
# Release Management Utils
15271530
# -----------------------------------------------------------------------------------
15281531

1529-
# Buildkite sets this env var to the PR number if on a PR, but to 'false' (and not nil) if not on a PR
1530-
pull_request_number = ENV['BUILDKITE_PULL_REQUEST']&.then { |n| n == 'false' ? nil : Integer(n) }
1531-
15321532
def create_backmerge_pr
15331533
version = release_version_current
15341534

0 commit comments

Comments
 (0)