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
Nicholas Bailey
rust-gitlab
Commits
429bc682
Commit
429bc682
authored
Apr 30, 2018
by
Brad King
Browse files
types: some project hook events are optional fields
parent
ba2c6bdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/test/types.rs
View file @
429bc682
...
...
@@ -420,10 +420,10 @@ fn test_read_project_hook() {
assert_eq!
(
project_hook
.push_events
,
true
);
assert_eq!
(
project_hook
.tag_push_events
,
true
);
assert_eq!
(
project_hook
.issues_events
,
true
);
assert_eq!
(
project_hook
.confidential_issues_events
,
true
);
assert_eq!
(
project_hook
.confidential_issues_events
,
Some
(
true
)
)
;
assert_eq!
(
project_hook
.merge_requests_events
,
true
);
assert_eq!
(
project_hook
.note_events
,
true
);
assert_eq!
(
project_hook
.confidential_note_events
,
true
);
assert_eq!
(
project_hook
.confidential_note_events
,
Some
(
true
)
)
;
assert_eq!
(
project_hook
.repository_update_events
,
false
);
assert_eq!
(
project_hook
.enable_ssl_verification
,
true
);
assert_eq!
(
project_hook
.job_events
,
true
);
...
...
src/types.rs
View file @
429bc682
...
...
@@ -314,13 +314,13 @@ pub struct ProjectHook {
/// Whether the hook is contacted for issue events.
pub
issues_events
:
bool
,
/// Whether the hook is contacted for confidential issue events.
pub
confidential_issues_events
:
bool
,
pub
confidential_issues_events
:
Option
<
bool
>
,
/// Whether the hook is contacted for merge request events.
pub
merge_requests_events
:
bool
,
/// Whether the hook is contacted for note events.
pub
note_events
:
bool
,
/// Whether the hook is contacted for confidential note events.
pub
confidential_note_events
:
bool
,
pub
confidential_note_events
:
Option
<
bool
>
,
/// Whether the hook is contacted for repository update events.
pub
repository_update_events
:
bool
,
/// Whether the communication with the hook is verified using TLS certificates.
...
...
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