Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit e99968f

Browse files
committed
Rename the Hook-ID annotation.
1 parent 8e02a57 commit e99968f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pkg/dsl/scripts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const (
2020
workspaceName = "git-checkout"
2121
workspaceBindingName = "source"
2222
workspaceSourcePath = "$(workspaces.source.path)"
23-
hookIDAnnotation = "tekton.dev/hook-id"
23+
hookIDAnnotation = "tekton.dev/ci-hook-id"
2424
ciSourceURLAnnotation = "tekton.dev/ci-source-url"
2525
ciSourceRefAnnotation = "tekton.dev/ci-source-ref"
2626
tektonGitInit = "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init"

pkg/dsl/scripts_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func TestAnnotateSource(t *testing.T) {
368368
"tekton.dev/status-context": "tekton-ci",
369369
"tekton.dev/ci-source-url": cloneURL,
370370
"tekton.dev/ci-source-ref": ref,
371-
"tekton.dev/hook-id": testEvtID,
371+
"tekton.dev/ci-hook-id": testEvtID,
372372
}
373373
if diff := cmp.Diff(want, pr.ObjectMeta.Annotations); diff != "" {
374374
t.Fatalf("Source() failed: %s\n", diff)

pkg/dsl/testdata/pipeline_with_tekton_task_pipeline_run.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
tekton.dev/status-context: tekton-ci
77
tekton.dev/ci-source-ref: refs/pulls/4
88
tekton.dev/ci-source-url: https://github.com/bigkevmcd/github-tool.git
9-
tekton.dev/hook-id: "26400635-d8f4-4cf5-a45f-bd03856bdf2b"
9+
tekton.dev/ci-hook-id: "26400635-d8f4-4cf5-a45f-bd03856bdf2b"
1010
creationTimestamp: null
1111
generateName: my-pipeline-run-
1212
labels:

pkg/dsl/testdata/script_with_job_matrix_pipeline_run.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
tekton.dev/status-context: tekton-ci
77
tekton.dev/ci-source-ref: refs/pulls/4
88
tekton.dev/ci-source-url: https://github.com/bigkevmcd/github-tool.git
9-
tekton.dev/hook-id: "26400635-d8f4-4cf5-a45f-bd03856bdf2b"
9+
tekton.dev/ci-hook-id: "26400635-d8f4-4cf5-a45f-bd03856bdf2b"
1010
creationTimestamp: null
1111
generateName: my-pipeline-run-
1212
labels:

pkg/dsl/testdata/script_with_rules_pipeline_run.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
tekton.dev/status-context: tekton-ci
77
tekton.dev/ci-source-ref: refs/pulls/4
88
tekton.dev/ci-source-url: https://github.com/bigkevmcd/github-tool.git
9-
tekton.dev/hook-id: "26400635-d8f4-4cf5-a45f-bd03856bdf2b"
9+
tekton.dev/ci-hook-id: "26400635-d8f4-4cf5-a45f-bd03856bdf2b"
1010
creationTimestamp: null
1111
generateName: my-pipeline-run-
1212
labels:

0 commit comments

Comments
 (0)