Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions fastlane/lanes/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@
set_upstream: is_ci == false # only set upstream when running locally, useless in transient CI builds
)

# Copy the branch protection settings from the default branch to the new release branch
copy_branch_protection(
repository: GITHUB_REPO,
from_branch: DEFAULT_BRANCH,
to_branch: computed_release_branch_name
)
# But allow admins to bypass restrictions, so that wpmobilebot can push to the release branch directly for beta version bumps
set_branch_protection(branch: computed_release_branch_name, enforce_admins: false)

freeze_milestone_and_move_assigned_prs_to_next_milestone(
milestone_to_freeze: new_version_final,
Expand Down