mattermost / mattermost/mattermost-plugin-github
Add custom post type for webhook posts, in order to comment, edit, and close issues/PRs
- Dominant language
- Go
- Stars
- 179
- Forks
- 180
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 13
Description
At the moment, there are no actions shown on posts created by the plugin's bot. In Slack's example shown below, there are three actions:
- Comment
- Edit
- Close
The task here is to implement a new custom post type, which will render these actions at the bottom of the post for the MM webapp.
For the "edit issue" feature, there is already an existing feature to create a GitHub issue, so we would reuse the same modal, but have it opened by this new action button inside the post.
Shown below are the Comment, Edit and Close buttons on a post and an example of how the Close dialog look in Slack
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names the MM webapp, webhook posts, and the existing GitHub issue-creation modal, but it names no files or tests. Review linked pull request #636 first, then trace how webhook posts are rendered and how the existing issue modal is opened. Done means posts expose Comment, Edit, and Close actions with the requested behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, go
- Domain
- full-stack
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100