Skip to content

Commit a378a5e

Browse files
committed
Use copy_branch_protection instead of set_branch_protection
1 parent d20a7bf commit a378a5e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

fastlane/lanes/release.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@
7676

7777
push_to_git_remote(tags: false)
7878

79-
set_branch_protection(repository: GHHELPER_REPO, branch: "release/#{new_version}")
79+
copy_branch_protection(
80+
repository: GHHELPER_REPO,
81+
from_branch: DEFAULT_BRANCH,
82+
to_branch: "release/#{new_version}"
83+
)
8084
set_milestone_frozen_marker(repository: GHHELPER_REPO, milestone: new_version)
8185
end
8286

0 commit comments

Comments
 (0)