Commit f84e9976 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

webhooks: support `null` source project info

This indicates that the source repository has been deleted.
parent 143f6ecc
......@@ -298,7 +298,9 @@ impl MergeRequestParams {
/// Merge request information exposed in hooks.
pub struct MergeRequestHookAttrs {
/// The source project of the merge request.
pub source: ProjectHookAttrs,
///
/// If this is `None`, the source repository has been deleted.
pub source: Option<ProjectHookAttrs>,
/// The target project of the merge request.
pub target: ProjectHookAttrs,
pub last_commit: Option<CommitHookAttrs>,
......
Markdown is supported
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