Skip to content

Commit f41bcc7

Browse files
committed
GithubHelper: Fix Named Parameters for warpper methods
The invocation of the actions protect/unprotect branch was with the wrong parameters at the call of the method on the cliend
1 parent 8882fbd commit f41bcc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/helper/github_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def update_milestone(repository:, number:, options:)
201201
# @see https://docs.github.com/en/rest/branches/branch-protection#update-branch-protection
202202
#
203203
def remove_branch_protection(repository:, branch:, options:)
204-
client.unprotect_branch(repository, branch_name, options)
204+
client.unprotect_branch(repository, branch, options)
205205
end
206206

207207
# Protects a single branch from a repository
@@ -212,7 +212,7 @@ def remove_branch_protection(repository:, branch:, options:)
212212
# @see https://docs.github.com/en/rest/branches/branch-protection#update-branch-protection
213213
#
214214
def set_branch_protection(repository:, branch:, options:)
215-
client.protect_branch(repository, branch_name, options)
215+
client.protect_branch(repository, branch, options)
216216
end
217217

218218
# Creates a GithubToken Fastlane ConfigItem

0 commit comments

Comments
 (0)