diff options
Diffstat (limited to 'ops/besadii/main.go')
-rw-r--r-- | ops/besadii/main.go | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/ops/besadii/main.go b/ops/besadii/main.go index 7972df74dd18..77c04099ebed 100644 --- a/ops/besadii/main.go +++ b/ops/besadii/main.go @@ -54,10 +54,10 @@ type Author struct { // Build is the representation of a Buildkite build as described on // https://buildkite.com/docs/apis/rest-api/builds#create-a-build type Build struct { - Commit string `json:"commit"` - Branch string `json:"branch"` - Author Author `json:"author"` - Env map[string]string `json:"env"` + Commit string `json:"commit"` + Branch string `json:"branch"` + Author Author `json:"author"` + Env map[string]string `json:"env"` } // Trigger a build of a given branch & commit on Buildkite @@ -70,9 +70,9 @@ func triggerBuild(log *syslog.Writer, token string, update *refUpdated) error { } build := Build{ - Commit: update.commit, - Branch: update.ref, - Env: env, + Commit: update.commit, + Branch: update.ref, + Env: env, Author: Author{ Name: update.submitter, Email: update.email, @@ -221,6 +221,7 @@ type reviewInput struct { Labels map[string]int `json:"labels"` OmitDuplicateComments bool `json:"omit_duplicate_comments"` IgnoreDefaultAttentionSetRules bool `json:"ignore_default_attention_set_rules"` + Tag string `json:"tag"` } func postCommandMain() { @@ -267,6 +268,8 @@ func postCommandMain() { // Update the attention set if we are failing this patchset. IgnoreDefaultAttentionSetRules: verified == 1, + + Tag: "autogenerated:buildkite~result", } body, _ := json.Marshal(review) |