We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d28332 commit fee9c90Copy full SHA for fee9c90
1 file changed
src/GitLabApiClient/WebhookClient.cs
@@ -40,7 +40,9 @@ public async Task<IList<Webhook>> GetAsync(ProjectId projectId)
40
}
41
42
/// <summary>
43
- /// Create new webhook
+ /// Create new webhook.
44
+ /// Some GitLab versions return a JSON array from POST /projects/:id/hooks
45
+ /// instead of a single object. We deserialize as JToken to handle both formats.
46
/// </summary>
47
/// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
48
/// <param name="request">Create hook request.</param>
0 commit comments