The controller uses annotations with the prefix github.integrations.tekton.dev
to identify and track TaskRuns to publish.
Annotation
Description
github.integrations.tekton.dev/installation
(GitHub App only) GitHub App Installation ID. This can be found in GitHub webhook events under the installations.id field.
github.integrations.tekton.dev/owner
GitHub org or user who owns the repo (for github.com/tektoncd/test, this should be tektoncd).
github.integrations.tekton.dev/repo
GitHub repo name (for github.com/tektoncd/test, this should be test).
github.integrations.tekton.dev/checkrun
(GitHub App / output only) GitHub CheckRun ID. If set, the controller will update this CheckRun instead of creating a new one.
github.integrations.tekton.dev/name
Display name to use for GitHub CheckRun/Status. If not specified, defaults to {{ .Namespace }}/{{ .Name }}. You can use text/template templating syntax to generate name and access any variables of TaskRun inside.
github.integrations.tekton.dev/url
Details URL to use for GitHub CheckRun/Status. If not specified, defaults to https://dashboard.dogfooding.tekton.dev/#/namespaces/{{ .Namespace }}/taskruns/{{ .Name }}. You can use text/template templating syntax to generate URL and access any variables of TaskRun inside.
For an example a full TaskRun with the initial annotations set, see
pkg/controller/testdata/taskrun.yaml
(these are the annotations you'll need to set for the notifier to work).