Open stephentoub opened 2 weeks ago
I can repro with the test endpoint of the webhook controller - this will add 2 comments - so it's not a case of github calling the webhook too many times.
I suspect that this commentOn method is retrying https://github.com/dotnet/issue-labeler/blob/0571c524404b80334144e365a4449bb111565ceb/src/GitHubHelpers/GitHubClientWrapper.cs#L77C22-L77C42
I tested that theory by enabling logs for the app service and triggering the test endpoint. I didn't observe a failure in the log (which I would expect for a retry here) so either it's not retrying - or the log is set up correctly for this component.
e.g. https://github.com/dotnet/runtime/pull/103308#issuecomment-2161508792