Skip to content

Commit

Permalink
remove annotations added as changes to ignore list already cover thes…
Browse files Browse the repository at this point in the history
…e files

The .wokeignore file has been modified to ignore these paths the annotations on the source file have been ommitted
  • Loading branch information
katmutua committed Jan 11, 2024
1 parent a116a39 commit a8f2c62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions pkg/apis/pipeline/v1/when_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ type WhenExpression struct {
// +listType=atomic
Values []string `json:"values,omitempty"`

// wokeignore:rule=master

// CEL is a string of Common Language Expression, which can be used to conditionally execute
// the task based on the result of the expression evaluation
// More info about CEL syntax: https://github.com/google/cel-spec/blob/master/doc/langdef.md
Expand Down
2 changes: 1 addition & 1 deletion pkg/resolution/resolver/git/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ func TestResolve(t *testing.T) {
cfg = make(map[string]string)
}
cfg[defaultTimeoutKey] = "1m"
// wokeignore:rule=master
if cfg[defaultRevisionKey] == "" {
cfg[defaultRevisionKey] = plumbing.Master.Short()
}
Expand Down Expand Up @@ -712,6 +711,7 @@ func createTestRepo(t *testing.T, commits []commitForRepo) (string, []string) {
coOpts := &git.CheckoutOptions{
Branch: plumbing.NewBranchReferenceName(branch),
}

if _, ok := hashesByBranch[branch]; !ok && branch != plumbing.Master.Short() {
coOpts.Hash = plumbing.NewHash(startingHash.String())
coOpts.Create = true
Expand Down

0 comments on commit a8f2c62

Please sign in to comment.