Class: Gitabu::Api::V3::Branches

Inherits:
Object
  • Object
show all
Defined in:
lib/gitabu/api/v3/branches.rb

Overview

Branches endpoints.

Class Method Summary collapse

Class Method Details

.add_app_access_restrictions(owner: nil, repo: nil, branch: nil, apps: nil, options: nil) ⇒ Object



146
147
148
# File 'lib/gitabu/api/v3/branches.rb', line 146

def self.add_app_access_restrictions(owner: nil, repo: nil, branch: nil, apps: nil, options: nil)
  new.add_app_access_restrictions(owner, repo, branch, apps, options)
end

.add_status_check_contexts(owner: nil, repo: nil, branch: nil, contexts: nil, options: nil) ⇒ Object



122
123
124
# File 'lib/gitabu/api/v3/branches.rb', line 122

def self.add_status_check_contexts(owner: nil, repo: nil, branch: nil, contexts: nil, options: nil)
  new.add_status_check_contexts(owner, repo, branch, contexts, options)
end

.add_team_access_restrictions(owner: nil, repo: nil, branch: nil, teams: nil, options: nil) ⇒ Object



162
163
164
# File 'lib/gitabu/api/v3/branches.rb', line 162

def self.add_team_access_restrictions(owner: nil, repo: nil, branch: nil, teams: nil, options: nil)
  new.add_team_access_restrictions(owner, repo, branch, teams, options)
end

.add_user_access_restrictions(owner: nil, repo: nil, branch: nil, users: nil, options: nil) ⇒ Object



178
179
180
# File 'lib/gitabu/api/v3/branches.rb', line 178

def self.add_user_access_restrictions(owner: nil, repo: nil, branch: nil, users: nil, options: nil)
  new.add_user_access_restrictions(owner, repo, branch, users, options)
end

.create_commit_signature_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



98
99
100
# File 'lib/gitabu/api/v3/branches.rb', line 98

def self.create_commit_signature_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.create_commit_signature_protection(owner, repo, branch, options)
end

.delete_access_restrictions(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



138
139
140
# File 'lib/gitabu/api/v3/branches.rb', line 138

def self.delete_access_restrictions(owner: nil, repo: nil, branch: nil, options: nil)
  new.delete_access_restrictions(owner, repo, branch, options)
end

.delete_admin_branch_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



78
79
80
# File 'lib/gitabu/api/v3/branches.rb', line 78

def self.delete_admin_branch_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.delete_admin_branch_protection(owner, repo, branch, options)
end

.delete_branch_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



66
67
68
# File 'lib/gitabu/api/v3/branches.rb', line 66

def self.delete_branch_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.delete_branch_protection(owner, repo, branch, options)
end

.delete_commit_signature_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



102
103
104
# File 'lib/gitabu/api/v3/branches.rb', line 102

def self.delete_commit_signature_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.delete_commit_signature_protection(owner, repo, branch, options)
end

.delete_pull_request_review_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



90
91
92
# File 'lib/gitabu/api/v3/branches.rb', line 90

def self.delete_pull_request_review_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.delete_pull_request_review_protection(owner, repo, branch, options)
end

.get_a_branch(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



42
43
44
# File 'lib/gitabu/api/v3/branches.rb', line 42

def self.get_a_branch(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_a_branch(owner, repo, branch, options)
end

.get_access_restrictions(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



134
135
136
# File 'lib/gitabu/api/v3/branches.rb', line 134

def self.get_access_restrictions(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_access_restrictions(owner, repo, branch, options)
end

.get_admin_branch_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



70
71
72
# File 'lib/gitabu/api/v3/branches.rb', line 70

def self.get_admin_branch_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_admin_branch_protection(owner, repo, branch, options)
end

.get_all_status_check_contexts(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



118
119
120
# File 'lib/gitabu/api/v3/branches.rb', line 118

def self.get_all_status_check_contexts(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_all_status_check_contexts(owner, repo, branch, options)
end

.get_apps_with_access_to_the_protected_branch(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



142
143
144
# File 'lib/gitabu/api/v3/branches.rb', line 142

def self.get_apps_with_access_to_the_protected_branch(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_apps_with_access_to_the_protected_branch(owner, repo, branch, options)
end

.get_branch_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



58
59
60
# File 'lib/gitabu/api/v3/branches.rb', line 58

def self.get_branch_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_branch_protection(owner, repo, branch, options)
end

.get_commit_signature_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



94
95
96
# File 'lib/gitabu/api/v3/branches.rb', line 94

def self.get_commit_signature_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_commit_signature_protection(owner, repo, branch, options)
end

.get_pull_request_review_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



82
83
84
# File 'lib/gitabu/api/v3/branches.rb', line 82

def self.get_pull_request_review_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_pull_request_review_protection(owner, repo, branch, options)
end

.get_status_checks_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



106
107
108
# File 'lib/gitabu/api/v3/branches.rb', line 106

def self.get_status_checks_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_status_checks_protection(owner, repo, branch, options)
end

.get_teams_with_access_to_the_protected_branch(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



158
159
160
# File 'lib/gitabu/api/v3/branches.rb', line 158

def self.get_teams_with_access_to_the_protected_branch(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_teams_with_access_to_the_protected_branch(owner, repo, branch, options)
end

.get_users_with_access_to_the_protected_branch(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



174
175
176
# File 'lib/gitabu/api/v3/branches.rb', line 174

def self.get_users_with_access_to_the_protected_branch(owner: nil, repo: nil, branch: nil, options: nil)
  new.get_users_with_access_to_the_protected_branch(owner, repo, branch, options)
end

.list_branches(owner: nil, repo: nil, options: nil) ⇒ Object



38
39
40
# File 'lib/gitabu/api/v3/branches.rb', line 38

def self.list_branches(owner: nil, repo: nil, options: nil)
  new.list_branches(owner, repo, options)
end

.merge_a_branch(owner: nil, repo: nil, base: nil, head: nil, commit_message: nil, options: nil) ⇒ Object



54
55
56
# File 'lib/gitabu/api/v3/branches.rb', line 54

def self.merge_a_branch(owner: nil, repo: nil, base: nil, head: nil, commit_message: nil, options: nil)
  new.merge_a_branch(owner, repo, base, head, commit_message, options)
end

.remove_app_access_restrictions(owner: nil, repo: nil, branch: nil, apps: nil, options: nil) ⇒ Object



154
155
156
# File 'lib/gitabu/api/v3/branches.rb', line 154

def self.remove_app_access_restrictions(owner: nil, repo: nil, branch: nil, apps: nil, options: nil)
  new.remove_app_access_restrictions(owner, repo, branch, apps, options)
end

.remove_status_check_contexts(owner: nil, repo: nil, branch: nil, contexts: nil, options: nil) ⇒ Object



130
131
132
# File 'lib/gitabu/api/v3/branches.rb', line 130

def self.remove_status_check_contexts(owner: nil, repo: nil, branch: nil, contexts: nil, options: nil)
  new.remove_status_check_contexts(owner, repo, branch, contexts, options)
end

.remove_status_check_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



114
115
116
# File 'lib/gitabu/api/v3/branches.rb', line 114

def self.remove_status_check_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.remove_status_check_protection(owner, repo, branch, options)
end

.remove_team_access_restrictions(owner: nil, repo: nil, branch: nil, teams: nil, options: nil) ⇒ Object



170
171
172
# File 'lib/gitabu/api/v3/branches.rb', line 170

def self.remove_team_access_restrictions(owner: nil, repo: nil, branch: nil, teams: nil, options: nil)
  new.remove_team_access_restrictions(owner, repo, branch, teams, options)
end

.remove_user_access_restrictions(owner: nil, repo: nil, branch: nil, users: nil, options: nil) ⇒ Object



186
187
188
# File 'lib/gitabu/api/v3/branches.rb', line 186

def self.remove_user_access_restrictions(owner: nil, repo: nil, branch: nil, users: nil, options: nil)
  new.remove_user_access_restrictions(owner, repo, branch, users, options)
end

.rename_a_branch(owner: nil, repo: nil, branch: nil, new_name: nil, options: nil) ⇒ Object



46
47
48
# File 'lib/gitabu/api/v3/branches.rb', line 46

def self.rename_a_branch(owner: nil, repo: nil, branch: nil, new_name: nil, options: nil)
  new.rename_a_branch(owner, repo, branch, new_name, options)
end

.set_admin_branch_protection(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



74
75
76
# File 'lib/gitabu/api/v3/branches.rb', line 74

def self.set_admin_branch_protection(owner: nil, repo: nil, branch: nil, options: nil)
  new.set_admin_branch_protection(owner, repo, branch, options)
end

.set_app_access_restrictions(owner: nil, repo: nil, branch: nil, apps: nil, options: nil) ⇒ Object



150
151
152
# File 'lib/gitabu/api/v3/branches.rb', line 150

def self.set_app_access_restrictions(owner: nil, repo: nil, branch: nil, apps: nil, options: nil)
  new.set_app_access_restrictions(owner, repo, branch, apps, options)
end

.set_status_check_contexts(owner: nil, repo: nil, branch: nil, contexts: nil, options: nil) ⇒ Object



126
127
128
# File 'lib/gitabu/api/v3/branches.rb', line 126

def self.set_status_check_contexts(owner: nil, repo: nil, branch: nil, contexts: nil, options: nil)
  new.set_status_check_contexts(owner, repo, branch, contexts, options)
end

.set_team_access_restrictions(owner: nil, repo: nil, branch: nil, teams: nil, options: nil) ⇒ Object



166
167
168
# File 'lib/gitabu/api/v3/branches.rb', line 166

def self.set_team_access_restrictions(owner: nil, repo: nil, branch: nil, teams: nil, options: nil)
  new.set_team_access_restrictions(owner, repo, branch, teams, options)
end

.set_user_access_restrictions(owner: nil, repo: nil, branch: nil, users: nil, options: nil) ⇒ Object



182
183
184
# File 'lib/gitabu/api/v3/branches.rb', line 182

def self.set_user_access_restrictions(owner: nil, repo: nil, branch: nil, users: nil, options: nil)
  new.set_user_access_restrictions(owner, repo, branch, users, options)
end

.sync_a_fork_branch_with_the_upstream_repository(owner: nil, repo: nil, branch: nil, options: nil) ⇒ Object



50
51
52
# File 'lib/gitabu/api/v3/branches.rb', line 50

def self.sync_a_fork_branch_with_the_upstream_repository(owner: nil, repo: nil, branch: nil, options: nil)
  new.sync_a_fork_branch_with_the_upstream_repository(owner, repo, branch, options)
end

.update_branch_protection(owner: nil, repo: nil, branch: nil, required_status_checks: nil, enforce_admins: nil, required_pull_request_reviews: nil, restrictions: nil, required_linear_history: nil, allow_force_pushes: nil, allow_deletions: nil, required_conversation_resolution: nil, options: nil) ⇒ Object



62
63
64
# File 'lib/gitabu/api/v3/branches.rb', line 62

def self.update_branch_protection(owner: nil, repo: nil, branch: nil, required_status_checks: nil, enforce_admins: nil, required_pull_request_reviews: nil, restrictions: nil, required_linear_history: nil, allow_force_pushes: nil, allow_deletions: nil, required_conversation_resolution: nil, options: nil)
  new.update_branch_protection(owner, repo, branch, required_status_checks, enforce_admins, required_pull_request_reviews, restrictions, required_linear_history, allow_force_pushes, allow_deletions, required_conversation_resolution, options)
end

.update_pull_request_review_protection(owner: nil, repo: nil, branch: nil, dismissal_restrictions: nil, dismiss_stale_reviews: nil, require_code_owner_reviews: nil, required_approving_review_count: nil, bypass_pull_request_allowances: nil, options: nil) ⇒ Object



86
87
88
# File 'lib/gitabu/api/v3/branches.rb', line 86

def self.update_pull_request_review_protection(owner: nil, repo: nil, branch: nil, dismissal_restrictions: nil, dismiss_stale_reviews: nil, require_code_owner_reviews: nil, required_approving_review_count: nil, bypass_pull_request_allowances: nil, options: nil)
  new.update_pull_request_review_protection(owner, repo, branch, dismissal_restrictions, dismiss_stale_reviews, require_code_owner_reviews, required_approving_review_count, bypass_pull_request_allowances, options)
end

.update_status_check_protection(owner: nil, repo: nil, branch: nil, strict: nil, contexts: nil, checks: nil, options: nil) ⇒ Object



110
111
112
# File 'lib/gitabu/api/v3/branches.rb', line 110

def self.update_status_check_protection(owner: nil, repo: nil, branch: nil, strict: nil, contexts: nil, checks: nil, options: nil)
  new.update_status_check_protection(owner, repo, branch, strict, contexts, checks, options)
end