-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GH-167] Render JIRA webhook comments as quoted messages #467
[GH-167] Render JIRA webhook comments as quoted messages #467
Conversation
@promulo Thanks for your PR! Heads up that there are a couple of tests failing: https://app.circleci.com/jobs/github/mattermost/mattermost-plugin-jira/4966 |
I see some tests failed, working on it. |
Alright, I have updated the failing tests but now I wonder if my change really belongs where it is now or somewhere between the webhook parsing logic and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me; that's where we do formatting for the headline, so seems like an appropriate place.
Thanks @promulo !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks, @promulo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and passed.
- Comments now appear with the quote before them
- Tested comment created and comment edit
- Tested on subscription events as well as receiving an at mention that creates a DM from the bot
- Tested on Server and Cloud
LGTM! Thanks @promulo for this enhancement!
Note There is a related issue where text does not show as indented when you use line breaks in a comment. MM-19652 exists in the backlog to address this.
Summary
This PR changes webhook handling for events of type "issue commented" and "issue comment edited" in order to render them as quoted messages in Mattermost.
Thanks for reviewing!
Screenshots
Issue commented
Before
After
Issue comment edited
Before
After
Ticket Link
Fixes #167.