mattermost / mattermost-plugin-github

GitHub plugin for Mattermost
Apache License 2.0
157 stars 148 forks source link

Have "PR Merged" subscriptions support filtering labels, for an attached issue #741

Open mickmister opened 7 months ago

mickmister commented 7 months ago

When a PR is merged, the issue it's attached to contains context for the purpose of this PR. It would be great to have a message like:

[PR x] was merged, with an [issue y] attached with [label z]

The task here is to make pulls and pulls_merged support searching through issues linked to the PR. If there is an error fetching the issue or labels, we should ignore and move on with checking other subscriptions. Note that only one post should be made for a channel that has multiple subscriptions.