Closed mickmister closed 4 months ago
Attention: Patch coverage is 0%
with 68 lines
in your changes are missing coverage. Please review.
Project coverage is 16.16%. Comparing base (
da4c4df
) to head (e6c087f
). Report is 3 commits behind head on master.:exclamation: Current head e6c087f differs from pull request most recent head 35851e2
Please upload reports for the commit 35851e2 to get more accurate results.
Files | Patch % | Lines |
---|---|---|
server/plugin/webhook.go | 0.00% | 68 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@mickmister Can we please fix the lint errors here ?
@AayushChaudhary0001 Can you take a look at this PR when you have the chance? Essentially all webhook events need to be tested
Summary
This PR fixes an issue in the pull request event webhook logic where we reuse the same post struct for multiple calls to
CreatePost
, resulting in this error:CreatePost: You cannot update an existing Post.
This PR applies a fix to make it so we instantiate a
Post
struct in the subscriptions loop, and only when we are going to create a post for that given subscription for the most part.Ticket Link
Fixes https://github.com/mattermost/mattermost-plugin-github/issues/754