-
Notifications
You must be signed in to change notification settings - Fork 208
Send notification to users via Slack when it fails to trigger deployment #2745
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
Conversation
|
The following files are not gofmt-ed. By commenting pkg/app/piped/notifier/slack.go--- pkg/app/piped/notifier/slack.go.orig
+++ pkg/app/piped/notifier/slack.go
@@ -213,7 +213,7 @@
md := event.Metadata.(*model.NotificationEventPipedStopped)
title = "A piped has been stopped"
generatePipedEventData(md.Id, md.Name, md.Version, md.ProjectId)
-
+
case model.NotificationEventType_EVENT_PIPED_FAILED:
md := event.Metadata.(*model.NotificationEventPipedFailed)
title = "A piped failed to start"
|
pipecd-bot
left a comment
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.
|
Code coverage for golang is
|
… to "NotificationEventType_EVENT_DEPLOYMENT_TRIGGER_FAILED"
|
The following files are not gofmt-ed. By commenting pkg/app/piped/trigger/deployment.go--- pkg/app/piped/trigger/deployment.go.orig
+++ pkg/app/piped/trigger/deployment.go
@@ -190,7 +190,7 @@
Metadata: &model.NotificationEventDeploymentTriggerFailed{
Application: app,
Commit: &model.GitCommit{
- Hash: commit.Hash,
+ Hash: commit.Hash,
Message: commit.Message,
},
Reason: reason,
|
|
Code coverage for golang is
|
|
Updated 👍 |
|
Code coverage for golang is
|
|
Updated 👍 |
|
Code coverage for golang is
|
Co-authored-by: Le Van Nghia <[email protected]>
|
Code coverage for golang is
|
|
Code coverage for golang is
|
|
Thanks! Updated 👍 |
Co-authored-by: Ryo Nakao <[email protected]>
|
Code coverage for golang is
|
|
Updated 👍 |
|
The following files are not gofmt-ed. By commenting pkg/app/piped/notifier/slack.go--- pkg/app/piped/notifier/slack.go.orig
+++ pkg/app/piped/notifier/slack.go
@@ -172,7 +172,7 @@
{"Commit", makeSlackLink(truncateText(msg, 8), commitURL), true},
}
}
-
+
}
generatePipedEventData := func(id, name, version, project string) {
link = fmt.Sprintf("%s/settings/piped?project=%s", webURL, project)
|
|
/golinter fmt |
|
Code coverage for golang is
|
Co-authored-by: Ryo Nakao <[email protected]>
|
Code coverage for golang is
|
|
There you go. Can't wait to show off this! |
|
Good job! |

What this PR does / why we need it:
This PR is related to #2742, but doesn't fix it. The following picture is an example.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: