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
Nicholas Bailey
rust-gitlab
Commits
8d096be4
Commit
8d096be4
authored
Mar 09, 2018
by
Brad King
Browse files
types: update for 10.5
The repository commit details now include the project id.
parent
7971d6ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
data/repo_commit_detail.json
View file @
8d096be4
{
"status"
:
"success"
,
"committer_email"
:
"kwrobot@kitware.com"
,
"stats"
:
{
"deletions"
:
0
,
"additions"
:
8
,
"total"
:
8
},
"short_id"
:
"de4ac3cf"
,
"title"
:
"Merge topic 'mr-awards'"
,
"author_email"
:
"brad.king@kitware.com"
,
"committer_name"
:
"Kitware Robot"
,
"created_at"
:
"2016-11-08T09:30:13.000-05:00"
,
"author_name"
:
"Brad King"
,
"parent_ids"
:
[
"559f5f4a2bfe1f48e9e95afa09c029deb655cf7d"
,
"a222c5539569cda6999b8069f1e51a5202c30711"
],
"committed_date"
:
"2016-11-08T09:30:13.000-05:00"
,
"last_pipeline"
:
{
"status"
:
"success"
,
"sha"
:
"de4ac3cf96cb8a0893be22b03f5171d934f9d392"
,
"ref"
:
"master"
,
"id"
:
34289
},
"message"
:
"Merge topic 'mr-awards'
\n\n
a222c553 gitlab: add a method for MR award queries
\n\n
Acked-by: Kitware Robot <kwrobot@kitware.com>
\n
Reviewed-by: Brad King <brad.king@kitware.com>
\n
Merge-request: !46
\n
"
,
"authored_date"
:
"2016-11-08T09:30:13.000-05:00"
,
"id"
:
"de4ac3cf96cb8a0893be22b03f5171d934f9d392"
}
{
"status"
:
"success"
,
"committer_email"
:
"kwrobot@kitware.com"
,
"stats"
:
{
"deletions"
:
0
,
"additions"
:
8
,
"total"
:
8
},
"short_id"
:
"de4ac3cf"
,
"title"
:
"Merge topic 'mr-awards'"
,
"author_email"
:
"brad.king@kitware.com"
,
"committer_name"
:
"Kitware Robot"
,
"created_at"
:
"2016-11-08T09:30:13.000-05:00"
,
"author_name"
:
"Brad King"
,
"parent_ids"
:
[
"559f5f4a2bfe1f48e9e95afa09c029deb655cf7d"
,
"a222c5539569cda6999b8069f1e51a5202c30711"
],
"committed_date"
:
"2016-11-08T09:30:13.000-05:00"
,
"last_pipeline"
:
{
"status"
:
"success"
,
"sha"
:
"de4ac3cf96cb8a0893be22b03f5171d934f9d392"
,
"ref"
:
"master"
,
"id"
:
34289
},
"message"
:
"Merge topic 'mr-awards'
\n\n
a222c553 gitlab: add a method for MR award queries
\n\n
Acked-by: Kitware Robot <kwrobot@kitware.com>
\n
Reviewed-by: Brad King <brad.king@kitware.com>
\n
Merge-request: !46
\n
"
,
"project_id"
:
855
,
"authored_date"
:
"2016-11-08T09:30:13.000-05:00"
,
"id"
:
"de4ac3cf96cb8a0893be22b03f5171d934f9d392"
}
src/test/types.rs
View file @
8d096be4
...
...
@@ -510,6 +510,7 @@ fn test_read_repo_commit_detail() {
}
else
{
panic!
(
"expected to have a last_pipeline for this commit"
);
}
assert_eq!
(
repo_commit_detail
.project_id
,
ProjectId
::
new
(
855
));
}
#[test]
...
...
src/types.rs
View file @
8d096be4
...
...
@@ -990,6 +990,8 @@ pub struct RepoCommitDetail {
pub
stats
:
Option
<
RepoCommitStats
>
,
/// The last pipeline for this commit, if any.
pub
last_pipeline
:
Option
<
PipelineBasic
>
,
/// The project associated with the commit.
pub
project_id
:
ProjectId
,
// XXX: Investigate what this is.
/// This looks to be CI related; ignoring without better docs.
status
:
Value
,
...
...
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