Skip to content

Commit 9e43cbb

Browse files
chmouelpipelines-as-code[bot]
authored andcommitted
chore: Correct typos in warning and event messages
- Corrected "Pipelinerun" to "PipelineRun" in a warning message - Fixed "Respository" typo in the event message key Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent 8c752e3 commit 9e43cbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/matcher/annotation_matcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ func checkPipelineRunAnnotation(prun *tektonv1.PipelineRun, eventEmitter *events
177177
if len(annotations) > 0 {
178178
ignoredAnnotations := strings.Join(annotations, ", ")
179179
msg := fmt.Sprintf(
180-
"Warning: The Pipelinerun '%s' has 'on-cel-expression' defined along with [%s] annotation(s). The 'on-cel-expression' will take precedence and these annotations will be ignored",
180+
"Warning: The PipelineRun '%s' has 'on-cel-expression' defined along with [%s] annotation(s). The 'on-cel-expression' will take precedence and these annotations will be ignored",
181181
prName,
182182
ignoredAnnotations,
183183
)
184-
eventEmitter.EmitMessage(repo, zap.WarnLevel, "RespositoryTakesOnCelExpressionPrecedence", msg)
184+
eventEmitter.EmitMessage(repo, zap.WarnLevel, "RepositoryTakesOnCelExpressionPrecedence", msg)
185185
}
186186
}
187187

pkg/matcher/annotation_matcher_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ func TestMatchPipelinerunByAnnotation(t *testing.T) {
16411641
},
16421642
wantErr: false,
16431643
wantLog: []string{
1644-
`Warning: The Pipelinerun 'pipeline-on-cel-test' has 'on-cel-expression' defined along with [on-event, on-target-branch] annotation(s). The 'on-cel-expression' will take precedence and these annotations will be ignored`,
1644+
`Warning: The PipelineRun 'pipeline-on-cel-test' has 'on-cel-expression' defined along with [on-event, on-target-branch] annotation(s). The 'on-cel-expression' will take precedence and these annotations will be ignored`,
16451645
},
16461646
},
16471647
{

0 commit comments

Comments
 (0)