Skip to content

Commit

Permalink
feat: add build sender (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
haleymuotka authored Jun 3, 2024
1 parent a7f8b00 commit b497494
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/vela-slack/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ func main() {
Name: "build-ref",
Usage: "environment variable reference for reading in build ref",
},
&cli.StringFlag{
EnvVars: []string{"VELA_BUILD_SENDER", "BUILD_SENDER"},
Name: "build-sender",
Usage: "environment variable reference for reading in build sender",
},
&cli.IntFlag{
EnvVars: []string{"VELA_BUILD_STARTED", "BUILD_STARTED"},
Name: "build-started",
Expand Down Expand Up @@ -407,6 +412,7 @@ func run(c *cli.Context) error {
BuildNumber: c.Int("build-number"),
BuildParent: c.Int("build-parent"),
BuildRef: c.String("build-ref"),
BuildSender: c.String("build-sender"),
BuildStarted: c.Int("build-started"),
BuildSource: c.String("build-source"),
BuildTag: c.String("build-tag"),
Expand Down
1 change: 1 addition & 0 deletions cmd/vela-slack/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type (
BuildNumber int
BuildParent int
BuildRef string
BuildSender string
BuildStarted int
BuildSource string
BuildTag string
Expand Down

0 comments on commit b497494

Please sign in to comment.