Skip to content

Commit

Permalink
[Tooling] Protect the release/* branch with the same settings as `m…
Browse files Browse the repository at this point in the history
…ain` (#3562)
  • Loading branch information
AliSoftware authored Feb 6, 2025
1 parent 64e5333 commit 3be67d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,7 @@ platform :android do
trigger_release_build(branch_to_build: "release/#{new_version}")
create_backmerge_pr

# We cannot use the `copy_branch_protection` action here as it would create a branch protection rule with the same
# restrictions we have in `main`, and the release managers wouldn't be able to push due to permissions.
# This should be changed only when we have PC Android releases done on CI, when the CI bot is the one running `git push`.
set_branch_protection(repository: GITHUB_REPO, branch: "release/#{new_version}")
copy_branch_protection(repository: GITHUB_REPO, branch: "release/#{new_version}", from_branch: DEFAULT_BRANCH)

begin
# Move PRs to next milestone
Expand Down

0 comments on commit 3be67d7

Please sign in to comment.