Class: Gitabu::Api::V3::Repos

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

Overview

Repos endpoints.

Class Method Summary collapse

Class Method Details

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



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

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

.create_a_fork(owner: nil, repo: nil, organization: nil, options: nil) ⇒ Object



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

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

.create_a_repository_dispatch_event(owner: nil, repo: nil, event_type: nil, client_payload: nil, options: nil) ⇒ Object



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

def self.create_a_repository_dispatch_event(owner: nil, repo: nil, event_type: nil, client_payload: nil, options: nil)
  new.create_a_repository_dispatch_event(owner, repo, event_type, client_payload, options)
end

.create_a_repository_for_the_authenticated_user(name: nil, description: nil, homepage: nil, private: nil, has_issues: nil, has_projects: nil, has_wiki: nil, team_id: nil, auto_init: nil, gitignore_template: nil, license_template: nil, allow_squash_merge: nil, allow_merge_commit: nil, allow_rebase_merge: nil, allow_auto_merge: nil, delete_branch_on_merge: nil, has_downloads: nil, is_template: nil, options: nil) ⇒ Object



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

def self.create_a_repository_for_the_authenticated_user(name: nil, description: nil, homepage: nil, private: nil, has_issues: nil, has_projects: nil, has_wiki: nil, team_id: nil, auto_init: nil, gitignore_template: nil, license_template: nil, allow_squash_merge: nil, allow_merge_commit: nil, allow_rebase_merge: nil, allow_auto_merge: nil, delete_branch_on_merge: nil, has_downloads: nil, is_template: nil, options: nil)
  new.create_a_repository_for_the_authenticated_user(name, description, homepage, private, has_issues, has_projects, has_wiki, team_id, auto_init, gitignore_template, license_template, allow_squash_merge, allow_merge_commit, allow_rebase_merge, allow_auto_merge, delete_branch_on_merge, has_downloads, is_template, options)
end

.create_a_repository_using_a_template(template_owner: nil, template_repo: nil, owner: nil, name: nil, description: nil, include_all_branches: nil, private: nil, options: nil) ⇒ Object



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

def self.create_a_repository_using_a_template(template_owner: nil, template_repo: nil, owner: nil, name: nil, description: nil, include_all_branches: nil, private: nil, options: nil)
  new.create_a_repository_using_a_template(template_owner, template_repo, owner, name, description, include_all_branches, private, options)
end


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

def self.create_an_autolink_reference_for_a_repository(owner: nil, repo: nil, key_prefix: nil, url_template: nil, options: nil)
  new.create_an_autolink_reference_for_a_repository(owner, repo, key_prefix, url_template, options)
end

.create_an_organization_repository(org: nil, name: nil, description: nil, homepage: nil, private: nil, visibility: nil, has_issues: nil, has_projects: nil, has_wiki: nil, is_template: nil, team_id: nil, auto_init: nil, gitignore_template: nil, license_template: nil, allow_squash_merge: nil, allow_merge_commit: nil, allow_rebase_merge: nil, allow_auto_merge: nil, delete_branch_on_merge: nil, options: nil) ⇒ Object



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

def self.create_an_organization_repository(org: nil, name: nil, description: nil, homepage: nil, private: nil, visibility: nil, has_issues: nil, has_projects: nil, has_wiki: nil, is_template: nil, team_id: nil, auto_init: nil, gitignore_template: nil, license_template: nil, allow_squash_merge: nil, allow_merge_commit: nil, allow_rebase_merge: nil, allow_auto_merge: nil, delete_branch_on_merge: nil, options: nil)
  new.create_an_organization_repository(org, name, description, homepage, private, visibility, has_issues, has_projects, has_wiki, is_template, team_id, auto_init, gitignore_template, license_template, allow_squash_merge, allow_merge_commit, allow_rebase_merge, allow_auto_merge, delete_branch_on_merge, options)
end

.create_or_update_file_contents(owner: nil, repo: nil, path: nil, message: nil, content: nil, sha: nil, branch: nil, committer: nil, author: nil, options: nil) ⇒ Object



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

def self.create_or_update_file_contents(owner: nil, repo: nil, path: nil, message: nil, content: nil, sha: nil, branch: nil, committer: nil, author: nil, options: nil)
  new.create_or_update_file_contents(owner, repo, path, message, content, sha, branch, committer, author, options)
end

.delete_a_file(owner: nil, repo: nil, path: nil, message: nil, sha: nil, branch: nil, committer: nil, author: nil, options: nil) ⇒ Object



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

def self.delete_a_file(owner: nil, repo: nil, path: nil, message: nil, sha: nil, branch: nil, committer: nil, author: nil, options: nil)
  new.delete_a_file(owner, repo, path, message, sha, branch, committer, author, options)
end

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



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

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


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

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

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



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

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

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



190
191
192
# File 'lib/gitabu/api/v3/repos.rb', line 190

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

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



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

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

.download_a_repository_archive_tar(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object



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

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

.download_a_repository_archive_zip(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object



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

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

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



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

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

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



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

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

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



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

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

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



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

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

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



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

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

.get_a_repository_readme_for_a_directory(owner: nil, repo: nil, dir: nil, options: nil) ⇒ Object



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

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

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



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

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


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

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

.get_repository_content(owner: nil, repo: nil, path: nil, options: nil) ⇒ Object



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

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


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

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

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



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

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

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



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

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

.list_organization_repositories(org: nil, options: nil) ⇒ Object



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

def self.list_organization_repositories(org: nil, options: nil)
  new.list_organization_repositories(org, options)
end

.list_public_repositories(options: nil) ⇒ Object



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

def self.list_public_repositories(options: nil)
  new.list_public_repositories(options)
end

.list_repositories_for_a_user(username: nil, options: nil) ⇒ Object



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

def self.list_repositories_for_a_user(username: nil, options: nil)
  new.list_repositories_for_a_user(username, options)
end

.list_repositories_for_the_authenticated_user(options: nil) ⇒ Object



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

def self.list_repositories_for_the_authenticated_user(options: nil)
  new.list_repositories_for_the_authenticated_user(options)
end

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



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

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

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



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

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

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



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

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

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



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

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

.replace_all_repository_topics(owner: nil, repo: nil, names: nil, options: nil) ⇒ Object



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

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

.transfer_a_repository(owner: nil, repo: nil, new_owner: nil, team_ids: nil, options: nil) ⇒ Object



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

def self.transfer_a_repository(owner: nil, repo: nil, new_owner: nil, team_ids: nil, options: nil)
  new.transfer_a_repository(owner, repo, new_owner, team_ids, options)
end

.update_a_repository(owner: nil, repo: nil, name: nil, description: nil, homepage: nil, private: nil, visibility: nil, security_and_analysis: nil, has_issues: nil, has_projects: nil, has_wiki: nil, is_template: nil, default_branch: nil, allow_squash_merge: nil, allow_merge_commit: nil, allow_rebase_merge: nil, allow_auto_merge: nil, delete_branch_on_merge: nil, archived: nil, allow_forking: nil, options: nil) ⇒ Object



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

def self.update_a_repository(owner: nil, repo: nil, name: nil, description: nil, homepage: nil, private: nil, visibility: nil, security_and_analysis: nil, has_issues: nil, has_projects: nil, has_wiki: nil, is_template: nil, default_branch: nil, allow_squash_merge: nil, allow_merge_commit: nil, allow_rebase_merge: nil, allow_auto_merge: nil, delete_branch_on_merge: nil, archived: nil, allow_forking: nil, options: nil)
  new.update_a_repository(owner, repo, name, description, homepage, private, visibility, security_and_analysis, has_issues, has_projects, has_wiki, is_template, default_branch, allow_squash_merge, allow_merge_commit, allow_rebase_merge, allow_auto_merge, delete_branch_on_merge, archived, allow_forking, options)
end