Skip to content

Commit

Permalink
Add instance key to rule data for evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
wsan3 committed Jul 9, 2024
1 parent b24411e commit 61250ea
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions compiler/native/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ func (c *client) Compile(v interface{}) (*pipeline.Build, *library.Pipeline, err

// create the ruledata to purge steps
r := &pipeline.RuleData{
Branch: c.build.GetBranch(),
Comment: c.comment,
Event: event,
Path: c.files,
Repo: c.repo.GetFullName(),
Tag: strings.TrimPrefix(c.build.GetRef(), "refs/tags/"),
Target: c.build.GetDeploy(),
Label: c.labels,
Branch: c.build.GetBranch(),
Comment: c.comment,
Event: event,
Path: c.files,
Repo: c.repo.GetFullName(),
Tag: strings.TrimPrefix(c.build.GetRef(), "refs/tags/"),
Target: c.build.GetDeploy(),
Label: c.labels,
Instance: c.metadata.Vela.Address,

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / validate

unknown field Instance in struct literal of type pipeline.RuleData

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / build

unknown field Instance in struct literal of type pipeline.RuleData

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / test

unknown field Instance in struct literal of type pipeline.RuleData

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / validate

unknown field Instance in struct literal of type pipeline.RuleData

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / build

unknown field Instance in struct literal of type pipeline.RuleData

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / diff-review

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / diff-review

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / diff-review

unknown field Instance in struct literal of type pipeline.RuleData (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / diff-review

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / diff-review

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / diff-review

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / diff-review

unknown field Instance in struct literal of type pipeline.RuleData (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] compiler/native/compile.go#L74

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)
Raw output
compiler/native/compile.go:74:3: unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)
	"github.com/go-vela/server/compiler/native"
	^

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] compiler/native/compile.go#L74

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)
Raw output
compiler/native/compile.go:74:3: unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)
	"github.com/go-vela/server/compiler/native"
	^

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] compiler/native/compile.go#L74

unknown field Instance in struct literal of type pipeline.RuleData (typecheck)
Raw output
compiler/native/compile.go:74:3: unknown field Instance in struct literal of type pipeline.RuleData (typecheck)
// SPDX-License-Identifier: Apache-2.0

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] compiler/native/compile.go#L74

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)
Raw output
compiler/native/compile.go:74:3: unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)
	"github.com/go-vela/server/compiler/native"
	^

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / full-review

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / full-review

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / full-review

unknown field Instance in struct literal of type pipeline.RuleData (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / full-review

unknown field Instance in struct literal of type pipeline.RuleData) (typecheck)

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

unknown field Instance in struct literal of type pipeline.RuleData

Check failure on line 74 in compiler/native/compile.go

View workflow job for this annotation

GitHub Actions / test

unknown field Instance in struct literal of type pipeline.RuleData
}

switch {
Expand Down

0 comments on commit 61250ea

Please sign in to comment.