Mattermost-plugin-github: When using a label-filter subscription, two posts are made when an issue is created with this label

Created on 15 Oct 2020  路  3Comments  路  Source: mattermost/mattermost-plugin-github

For a subscription such as /github subscriptions add mattermost issues,label:"Triage", any new issues cause a post to be made in the channel. There is a second post that occurs at the same time if the label would match Triage.

Now that we show the labels on the "new issue" posts, we should avoid creating the "label-added" posts during the processing of the new issue. Only the "new issue" post should be made. This probably occurs with PRs as well.

image

Easy Good First Issue Hacktoberfest Help Wanted TecGo TypEnhancement

Most helpful comment

If GitHub sends a separate issue-labeled event when the issue is created with a label, we can check if the issue was created within the last 2 seconds or something like that, in order to avoid the extra post.

All 3 comments

If GitHub sends a separate issue-labeled event when the issue is created with a label, we can check if the issue was created within the last 2 seconds or something like that, in order to avoid the extra post.

Hey @mickmister @hanzei I'm looking for issues to colaborate. Can I get this one?

Thanks @EnzoBtv!!

Was this page helpful?
0 / 5 - 0 ratings