Skip to content

Commit 20e1509

Browse files
committed
reverse_merge doesn't work
1 parent 2607898 commit 20e1509

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/github_api/client/repos/branches/protections.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Client::Repos::Branches::Protections < API
1919
def get(*args)
2020
arguments(args, required: [:user, :repo, :branch])
2121

22-
get_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}/protection", arguments.params.reverse_merge({accept: 'application/vnd.github.loki-preview+json'}))
22+
get_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}/protection", arguments.params)
2323
end
2424
alias :find :get
2525

@@ -46,7 +46,7 @@ def edit(*args)
4646
permit VALID_PROTECTION_PARAM_NAMES
4747
end
4848

49-
put_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}/protection", arguments.params.reverse_merge({accept: 'application/vnd.github.loki-preview+json'}))
49+
put_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}/protection", arguments.params)
5050
end
5151
alias :update :edit
5252

@@ -60,7 +60,7 @@ def edit(*args)
6060
def delete(*args)
6161
arguments(args, required: [:user, :repo, :branch])
6262

63-
delete_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}/protection", arguments.params.reverse_merge({accept: 'application/vnd.github.loki-preview+json'}))
63+
delete_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}/protection", arguments.params)
6464
end
6565
end # Client::Repos::Branches::Protections
6666
end # Github

0 commit comments

Comments
 (0)