I am customising the PagerDuty to Microsoft Teams integration that Sindre Lindstad created (porting it to AWS Lambda, and changing the card format to suit our needs), and I have bumped into a quirk in the webhook.
If I Resolve an incident but do not add a Resolution Note, then I get an incident.resolve event just as I expect.
However, if I add a Resolution Note when I am resolving the incident, then I get an incident.annotate event and no subsequent incident.resolve event. Not what I expected at all.
Is this the expected behaviour?