Skip to content

Commit 617f029

Browse files
committed
[Hygiene]Update fastlane update_webrtc with skip_pr option
1 parent 5668636 commit 617f029

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

fastlane/Fastfile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ private_lane :frameworks_sizes do
812812
}
813813
end
814814

815-
desc "Updates WebRTC dependency locally. Usage: `bundle exec fastlane update_stream_chat version:125.6422.070`"
815+
desc "Updates WebRTC dependency locally. Usage: `bundle exec fastlane update_stream_chat version:125.6422.070 skip_pr:true`"
816816
lane :update_webrtc do |options|
817817
raise UI.user_error!('Provide a version.') unless options[:version]
818818

@@ -834,12 +834,18 @@ lane :update_webrtc do |options|
834834
end
835835
end
836836

837-
pr_create(
838-
title: "Update WebRTC dependency to #{options[:version]}",
839-
base_branch: 'develop',
840-
head_branch: "ci/update-webrtc-dependency-#{Time.now.to_i}",
841-
github_repo: github_repo
842-
)
837+
skip_pr = %w[true 1].include?(options[:skip_pr].to_s.downcase)
838+
839+
if skip_pr
840+
UI.message('Skipping PR creation as requested.')
841+
else
842+
pr_create(
843+
title: "Update WebRTC dependency to #{options[:version]}",
844+
base_branch: 'develop',
845+
head_branch: "ci/update-webrtc-dependency-#{Time.now.to_i}",
846+
github_repo: github_repo
847+
)
848+
end
843849
end
844850

845851
lane :size_analyze do

0 commit comments

Comments
 (0)