This commit is contained in:
parent
eeed1a402d
commit
c6521c7fcf
1 changed files with 4 additions and 4 deletions
8
main.go
8
main.go
|
|
@ -37,14 +37,14 @@ func main() {
|
|||
|
||||
author := githubactions.GetInput("author")
|
||||
if author == "" {
|
||||
githubactions.Infof("Missing input 'author'")
|
||||
githubactions.Infof("[INFO] Missing input 'author', using default")
|
||||
author = "STACKIT git action"
|
||||
}
|
||||
data.Author = author
|
||||
|
||||
title := githubactions.GetInput("title")
|
||||
if title == "" {
|
||||
githubactions.Infof("Missing input 'title'")
|
||||
githubactions.Infof("[INFO] Missing input 'title', using default")
|
||||
title = "STACKIT git action"
|
||||
}
|
||||
data.Title = title
|
||||
|
|
@ -134,7 +134,7 @@ func card(d templateData) ([]byte, error) {
|
|||
d.EventBody = "<b>Project:</b> {{ .Project }}<br><b>Commit-id:</b> <font color=\"#FF0000\">{{ .Commit }}</font><br><b>Branch:</b> <font color=\"#00FF00f\">{{ .Branch }}</font><br><b>Build Status:</b> <font color=\"#0000ff\">{{ .Status }}</font>"
|
||||
}
|
||||
|
||||
// data := `{
|
||||
//data := `{
|
||||
// "cards": [
|
||||
// {
|
||||
// "header": {
|
||||
|
|
@ -188,7 +188,7 @@ func card(d templateData) ([]byte, error) {
|
|||
"title": "{{ .Title }}",
|
||||
"subtitle": "{{ .SubTitle }}",
|
||||
"imageUrl": "{{ .IconUrl }}",
|
||||
"imageStyle": "IMAGE"
|
||||
"imageStyle": "IMAGE",
|
||||
"imageType": "SQUARE"
|
||||
},
|
||||
"sections": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue