File tree Expand file tree Collapse file tree
lib/github_api/client/repos/branches Expand file tree Collapse file tree Original file line number Diff line number Diff 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
6666end # Github
You can’t perform that action at this time.
0 commit comments