We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0551b4 commit 94879deCopy full SHA for 94879de
fastlane/lanes/release.rb
@@ -73,11 +73,18 @@
73
74
push_to_git_remote(tags: false)
75
76
+ # Copy the branch protection settings from the default branch to the new release branch
77
copy_branch_protection(
78
repository: GITHUB_REPO,
79
from_branch: DEFAULT_BRANCH,
80
to_branch: release_branch_name
81
)
82
+ # But allow admins to bypass restrictions, so that wpmobilebot can push to the release branch directly
83
+ set_branch_protection(
84
+ repository: GITHUB_REPO,
85
+ branch: release_branch_name,
86
+ enforce_admins: false
87
+ )
88
89
begin
90
# Move PRs to next milestone
0 commit comments