Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

support mattermost integration #212

Merged
merged 3 commits into from
Mar 19, 2021

Conversation

ryota-sakamoto
Copy link
Member

@ryota-sakamoto ryota-sakamoto commented Mar 17, 2021

Signed-off-by: Ryota Sakamoto sakamo.ryota+github@gmail.com

refs: #176

I don't use mattermost/mattermost-server model/client4.go, because it is too large to use library.

@codecov
Copy link

codecov bot commented Mar 17, 2021

Codecov Report

Merging #212 (75ad588) into master (0a22db9) will increase coverage by 0.29%.
The diff coverage is 60.41%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #212      +/-   ##
==========================================
+ Coverage   49.91%   50.20%   +0.29%     
==========================================
  Files          33       34       +1     
  Lines        1675     1723      +48     
==========================================
+ Hits          836      865      +29     
- Misses        671      683      +12     
- Partials      168      175       +7     
Impacted Files Coverage Δ
pkg/services/services.go 25.26% <28.57%> (+0.26%) ⬆️
pkg/services/mattermost.go 65.85% <65.85%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a22db9...75ad588. Read the comment docs.

@ryota-sakamoto ryota-sakamoto force-pushed the support-masttermost branch 2 times, most recently from cf8f71e to e39d1fd Compare March 17, 2021 17:22
Signed-off-by: Ryota Sakamoto <sakamo.ryota+github@gmail.com>
Signed-off-by: Ryota Sakamoto <sakamo.ryota+github@gmail.com>
@ryota-sakamoto ryota-sakamoto force-pushed the support-masttermost branch 2 times, most recently from d7ef7dd to 37faa04 Compare March 17, 2021 17:24
Signed-off-by: Ryota Sakamoto <sakamo.ryota+github@gmail.com>
@ryota-sakamoto ryota-sakamoto marked this pull request as ready for review March 17, 2021 17:31
Copy link
Collaborator

@alexmt alexmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

httputil "github.com/argoproj-labs/argocd-notifications/pkg/util/http"
)

type MattermostNotification struct {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was under impression that we can just re-use Slack notification and templates but looks like not every field is supported.

I see attachments in documentation but no blocks, users etc https://docs.mattermost.com/developer/message-attachments.html#attachment-options

@ryota-sakamoto can you please confirm that I understand it correctly?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically mattermost and slack are similar but not really compatible, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexmt
yes. I cannot find it out that block is supported.
I guess it is only similar for attachments.
https://mattermost.atlassian.net/browse/MM-26729

@alexmt alexmt merged commit b6edc17 into argoproj-labs:master Mar 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants