diff options
| author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-12 22:40:35 -0300 |
|---|---|---|
| committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-24 16:17:52 -0300 |
| commit | 0a52ae8380d52bf697057d32a404c93f11c9f93d (patch) | |
| tree | 293273fa9e7950a5f2fdc6874987d5014326ed28 /lib | |
| parent | 4f68dc4f97d928aca8f477ce390c7189254bc4d0 (diff) | |
| download | gitlab-ce-0a52ae8380d52bf697057d32a404c93f11c9f93d.tar.gz | |
Remove unused GitHub endpoint wrappers
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/github/issues.rb | 20 | ||||
| -rw-r--r-- | lib/github/labels.rb | 20 | ||||
| -rw-r--r-- | lib/github/milestones.rb | 20 | ||||
| -rw-r--r-- | lib/github/pull_requests.rb | 20 | ||||
| -rw-r--r-- | lib/github/releases.rb | 20 |
5 files changed, 0 insertions, 100 deletions
diff --git a/lib/github/issues.rb b/lib/github/issues.rb deleted file mode 100644 index 27843e1cdd8..00000000000 --- a/lib/github/issues.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Github - class Issues - attr_reader :owner, :repo - - def initialize(owner, repo) - @owner = owner - @repo = repo - end - - def fetch - Collection.new(issues_url).fetch(state: :all, sort: :created, direction: :asc, per_page: 10) - end - - private - - def issues_url - "/repos/#{owner}/#{repo}/issues" - end - end -end diff --git a/lib/github/labels.rb b/lib/github/labels.rb deleted file mode 100644 index 0ea023888b3..00000000000 --- a/lib/github/labels.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Github - class Labels - attr_reader :owner, :repo - - def initialize(owner, repo) - @owner = owner - @repo = repo - end - - def fetch - Collection.new(labels_url).fetch - end - - private - - def labels_url - "/repos/#{owner}/#{repo}/labels" - end - end -end diff --git a/lib/github/milestones.rb b/lib/github/milestones.rb deleted file mode 100644 index d50278105db..00000000000 --- a/lib/github/milestones.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Github - class Milestones - attr_reader :owner, :repo - - def initialize(owner, repo) - @owner = owner - @repo = repo - end - - def fetch - Collection.new(milestones_url).fetch - end - - private - - def milestones_url - "/repos/#{owner}/#{repo}/milestones" - end - end -end diff --git a/lib/github/pull_requests.rb b/lib/github/pull_requests.rb deleted file mode 100644 index af04c90d454..00000000000 --- a/lib/github/pull_requests.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Github - class PullRequests - attr_reader :owner, :repo - - def initialize(owner, repo) - @owner = owner - @repo = repo - end - - def fetch - Collection.new(pull_requests_url).fetch(state: :all, sort: :created, direction: :asc) - end - - private - - def pull_requests_url - "/repos/#{owner}/#{repo}/pulls" - end - end -end diff --git a/lib/github/releases.rb b/lib/github/releases.rb deleted file mode 100644 index 026ef4e6853..00000000000 --- a/lib/github/releases.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Github - class Releases - attr_reader :owner, :repo - - def initialize(owner, repo) - @owner = owner - @repo = repo - end - - def fetch - Collection.new(releases_url).fetch - end - - private - - def releases_url - "/repos/#{owner}/#{repo}/releases" - end - end -end |
