Commit 429bc682 authored by Brad King's avatar Brad King
Browse files

types: some project hook events are optional fields

parent ba2c6bdc
......@@ -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);
......
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment