Mattermost-plugin-github: Add "Attach to Github Issue" similar to Jira plugin

Created on 9 Sep 2019  路  9Comments  路  Source: mattermost/mattermost-plugin-github

All 9 comments

Hey, i would love to work on this.

Thanks @niklabh!

Here is the flow for implementations in https://github.com/mattermost/mattermost-plugin-github/pull/120:

  • Click Attach to Github Issue in context menu (shown when user connects his github account with plugin installed) on non system messages
    Screenshot from 2019-09-11 13-26-14
  • Attach to github modal will open
    Screenshot from 2019-09-11 13-26-30
  • You can search the issue. The query to github is is:open is:issue assignee:{connected_user} archived:false [org:{organisation}] [search term]
    Screenshot from 2019-09-11 13-26-47
  • Comment is attached to github
    Screenshot from 2019-09-11 13-37-28

@niklabh Hi, we are using this plugin on a Mattermost instance of ours but the result after attaching a Mattermost message to an issue is not the same.

Yours contains just the message and that's it, meanwhile ours also adds some unwanted comments on the top, such as, "x user attached x message to issue".

Is there any config I have missed or did this feature actually change in newer PRs? Thanks in advance!

Hi @AnXh3L0,

The screenshot above were taken from a WIP prototype. https://github.com/mattermost/mattermost-plugin-github/pull/162 did add the x user attached x message to issue text. It there to make clear where is comment does come from and help with linking Mattermost and GitHub even further together.

Hi @hanzei,

Thanks for the answer. Is there any way we can remove that line without having to edit and rebuild the whole plugin?

No, there isn't. Without that lint it seams to be hard to identify the context in which a message was attached e.g. when attaching a message from another user.

Understood, it seems I'll have to edit the plugin myself then, thanks for the quick answer!

Was this page helpful?
0 / 5 - 0 ratings