Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bradley Wood
rust-gitlab
Commits
b7728827
Commit
b7728827
authored
Jan 05, 2018
by
Ben Boeckel
Browse files
types: changes_count can also be null
parent
8e1ec2c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/test/types.rs
View file @
b7728827
...
...
@@ -291,7 +291,7 @@ fn test_read_merge_request() {
assert_eq!
(
merge_request
.time_stats.total_time_spent
,
0
);
assert_eq!
(
merge_request
.time_stats.human_time_estimate
,
None
);
assert_eq!
(
merge_request
.time_stats.human_total_time_spent
,
None
);
assert_eq!
(
merge_request
.changes_count
,
"3"
);
assert_eq!
(
merge_request
.changes_count
,
Some
(
"3"
.to_string
())
);
assert_eq!
(
merge_request
.user_notes_count
,
3
);
assert_eq!
(
merge_request
.discussion_locked
,
None
);
assert_eq!
(
merge_request
.should_remove_source_branch
,
None
);
...
...
src/types.rs
View file @
b7728827
...
...
@@ -1386,7 +1386,7 @@ pub struct MergeRequest {
///
/// This is an integer suffixed by `+` if there are more files changed than some threshold
/// (probably determined by a timeout).
pub
changes_count
:
String
,
pub
changes_count
:
Option
<
String
>
,
/// The number of comments on the merge request.
pub
user_notes_count
:
u64
,
/// Whether the discussion has been locked.
...
...
@@ -1459,7 +1459,7 @@ pub struct MergeRequestChanges {
/// Time estimates.
pub
time_stats
:
IssuableTimeStats
,
/// The number of paths changed by the merge request.
pub
changes_count
:
String
,
pub
changes_count
:
Option
<
String
>
,
/// The number of comments on the merge request.
pub
user_notes_count
:
u64
,
/// Whether the discussion has been locked.
...
...
Write
Preview
Supports
Markdown
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