Skip to content

Commit fee9c90

Browse files
barnon-apiiroclaude
andcommitted
Add xmldoc explaining the array response workaround
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7d28332 commit fee9c90

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/GitLabApiClient/WebhookClient.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ public async Task<IList<Webhook>> GetAsync(ProjectId projectId)
4040
}
4141

4242
/// <summary>
43-
/// Create new webhook
43+
/// 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.
4446
/// </summary>
4547
/// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
4648
/// <param name="request">Create hook request.</param>

0 commit comments

Comments
 (0)