Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
0a52ae83
Commit
0a52ae83
authored
Apr 12, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused GitHub endpoint wrappers
parent
4f68dc4f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
100 deletions
+0
-100
lib/github/issues.rb
lib/github/issues.rb
+0
-20
lib/github/labels.rb
lib/github/labels.rb
+0
-20
lib/github/milestones.rb
lib/github/milestones.rb
+0
-20
lib/github/pull_requests.rb
lib/github/pull_requests.rb
+0
-20
lib/github/releases.rb
lib/github/releases.rb
+0
-20
No files found.
lib/github/issues.rb
deleted
100644 → 0
View file @
4f68dc4f
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
lib/github/labels.rb
deleted
100644 → 0
View file @
4f68dc4f
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
lib/github/milestones.rb
deleted
100644 → 0
View file @
4f68dc4f
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
lib/github/pull_requests.rb
deleted
100644 → 0
View file @
4f68dc4f
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
lib/github/releases.rb
deleted
100644 → 0
View file @
4f68dc4f
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment