Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jocelyn Falempe
rust-gitlab
Commits
6d4d192d
Commit
6d4d192d
authored
Dec 07, 2016
by
Makoto Nakashima
Browse files
Rename to commit_latest_build, improve docstrings.
parent
fd66aca0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gitlab.rs
View file @
6d4d192d
...
...
@@ -293,12 +293,12 @@ impl Gitlab {
Self
::
_get_paged_req
(
req
)
}
/// Get the builds of a commit.
pub
fn
commit_builds
(
&
self
,
project
:
ProjectId
,
commit
:
&
str
)
->
GitlabResult
<
Vec
<
Build
>>
{
/// Get the
latest
builds of a commit.
pub
fn
commit_
latest_
builds
(
&
self
,
project
:
ProjectId
,
commit
:
&
str
)
->
GitlabResult
<
Vec
<
Build
>>
{
self
._get_paged
(
&
format!
(
"projects/{}/repository/commits/{}/builds"
,
project
,
commit
))
}
/// Get the builds of a commit.
/// Get the
all
builds of a commit.
pub
fn
commit_all_builds
(
&
self
,
project
:
ProjectId
,
commit
:
&
str
)
->
GitlabResult
<
Vec
<
Build
>>
{
let
mut
req
=
try
!
(
self
._mkrequest
(
&
format!
(
"projects/{}/repository/commits/{}/builds"
,
project
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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