Update tag-git
comment in cascading runs; Follow up
#49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #47 I tried to teach GitForWindowsHelper to find the PR comment containing
/git-artifacts
when thetag-git
check run finished that was triggered by that slash command. However, it did not work, despite the webhook being delivered with status 200 and the response body being:I do not really know why it failed, but when I tried to run the code locally (commenting out the part that would have triggered another pair of
git-artifacts
runs), it didn't work for me either, due to expire time issues ("too far in the future") and due to too-strict matching (sometimes the fragment in the search result ended in a newline character, sometimes it did not).This PR is designed to help with both issues, so that hopefully the v2.43.0 (final) PR will see the
/git-artifacts
comment being updated as intended.At least when I ran the code locally with these modifications, the
/git-artifacts
comment was updated as I wanted, if somewhat belatedly.