Skip to content

Commit

Permalink
修改模板,因为Drone自身bug不再显示构建时间与构建失败Stages
Browse files Browse the repository at this point in the history
  • Loading branch information
mozhu811 committed Oct 18, 2023
1 parent 35db847 commit 8bd7dad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions template/feishu_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
},
{
"tag": "markdown",
"content": "👨🏻‍💻 **Built By** [@{{ .Build.CommitAuthor.Username }}](https://github.com/{{ .Build.CommitAuthor.Username }})\n🔀 **Built Branch**: [{{ .Build.Branch }}]({{ .Repo.Url }}/tree/{{ .Build.Branch }})\n🚀 **Commit**: [{{ .Build.Commit }}]({{ .Repo.Url }}/commit/{{ .Build.Commit }})\n📝 **Commit message**: \n{{ .Build.CommitMessage }}\n🛠️ **Build Details**: [#{{ .Build.Number }}]({{ .Build.Link }})\n⏱️ **Duration**: {{ .Build.CostTime }}s"
"content": "👨🏻‍💻 **Built By** [@{{ .Build.CommitAuthor.Username }}](https://github.com/{{ .Build.CommitAuthor.Username }})\n🔀 **Built Branch**: [{{ .Build.Branch }}]({{ .Repo.Url }}/tree/{{ .Build.Branch }})\n🚀 **Commit**: [{{ .Build.Commit }}]({{ .Repo.Url }}/commit/{{ .Build.Commit }})\n📝 **Commit message**: \n{{ .Build.CommitMessage }}\n🛠️ **Build Details**: [#{{ .Build.Number }}]({{ .Build.Link }})"
},
{
"tag": "action",
Expand Down Expand Up @@ -127,7 +127,7 @@ const (
},
{
"tag": "markdown",
"content": "👨🏻‍💻 **Built By** [@{{ .Build.CommitAuthor.Username }}](https://github.com/{{ .Build.CommitAuthor.Username }})\n📌 **Pull Request**: ***{{ .Build.SourceBranch }} ➡️ {{ .Build.TargetBranch }}***\n{{ .Build.PullRequestTitle }}\n🚀 **Commit**: [{{ .Build.Commit }}]({{ .Repo.Url }}/commit/{{ .Build.Commit }})\n📝 **Commit Message**: \n{{ .Build.CommitMessage }}\n🛠️ **Build Details**: [#{{ .Build.Number }}]({{ .Build.Link }})\n⏱️ **Duration**: {{ .Build.CostTime }}s"
"content": "👨🏻‍💻 **Built By** [@{{ .Build.CommitAuthor.Username }}](https://github.com/{{ .Build.CommitAuthor.Username }})\n📌 **Pull Request**: ***{{ .Build.SourceBranch }} ➡️ {{ .Build.TargetBranch }}***\n{{ .Build.PullRequestTitle }}\n🚀 **Commit**: [{{ .Build.Commit }}]({{ .Repo.Url }}/commit/{{ .Build.Commit }})\n📝 **Commit Message**: \n{{ .Build.CommitMessage }}\n🛠️ **Build Details**: [#{{ .Build.Number }}]({{ .Build.Link }})"
},
{
"tag": "action",
Expand Down Expand Up @@ -212,7 +212,7 @@ const (
},
{
"tag": "markdown",
"content": "👨🏻‍💻 **Built By** [@{{ .Build.CommitAuthor.Username }}](https://github.com/{{ .Build.CommitAuthor.Username }})\n🔀 **Built Branch**: [{{ .Build.Branch }}]({{ .Repo.Url }}/tree/{{ .Build.Branch }})\n🚀 **Commit**: [{{ .Build.Commit }}]({{ .Repo.Url }}/commit/{{ .Build.Commit }})\n📝 **Commit message**: \n{{ .Build.CommitMessage }}\n🛠️ **Build Details**: [#{{ .Build.Number }}]({{ .Build.Link }})\n❌ **Failed Stages**: {{ .Build.FailedStages }}\n🔥️ **Failed Steps**: {{ .Build.FailedSteps }}"
"content": "👨🏻‍💻 **Built By** [@{{ .Build.CommitAuthor.Username }}](https://github.com/{{ .Build.CommitAuthor.Username }})\n🔀 **Built Branch**: [{{ .Build.Branch }}]({{ .Repo.Url }}/tree/{{ .Build.Branch }})\n🚀 **Commit**: [{{ .Build.Commit }}]({{ .Repo.Url }}/commit/{{ .Build.Commit }})\n📝 **Commit message**: \n{{ .Build.CommitMessage }}\n🛠️ **Build Details**: [#{{ .Build.Number }}]({{ .Build.Link }})\n🔥️ **Failed Steps**: {{ .Build.FailedSteps }}"
},
{
"tag": "action",
Expand Down Expand Up @@ -311,7 +311,7 @@ const (
},
{
"tag": "markdown",
"content": "👨🏻‍💻 **Built By** [@{{ .Build.CommitAuthor.Username }}](https://github.com/{{ .Build.CommitAuthor.Username }})\n📌 **Pull Request**: ***{{ .Build.SourceBranch }} ➡️ {{ .Build.TargetBranch }}***\n{{ .Build.PullRequestTitle }}\n🚀 **Commit**: [{{ .Build.Commit }}]({{ .Repo.Url }}/commit/{{ .Build.Commit }})\n📝 **Commit Message**: \n{{ .Build.CommitMessage }}\n🛠️ **Build details**: [#{{ .Build.Number }}]({{ .Build.Link }})\n❌ **Failed Stages**: {{ .Build.FailedStages }}\n🔥️ **Failed Steps**: {{ .Build.FailedSteps }}"
"content": "👨🏻‍💻 **Built By** [@{{ .Build.CommitAuthor.Username }}](https://github.com/{{ .Build.CommitAuthor.Username }})\n📌 **Pull Request**: ***{{ .Build.SourceBranch }} ➡️ {{ .Build.TargetBranch }}***\n{{ .Build.PullRequestTitle }}\n🚀 **Commit**: [{{ .Build.Commit }}]({{ .Repo.Url }}/commit/{{ .Build.Commit }})\n📝 **Commit Message**: \n{{ .Build.CommitMessage }}\n🛠️ **Build details**: [#{{ .Build.Number }}]({{ .Build.Link }})\n🔥️ **Failed Steps**: {{ .Build.FailedSteps }}"
},
{
"tag": "action",
Expand Down

0 comments on commit 8bd7dad

Please sign in to comment.