Skip to content

docs: add JSON/YAML output examples to list command help - #3269

Merged
tekton-robot merged 1 commit into
tektoncd:mainfrom
arvindk-softwaredev:doc/list-command-examples
Sep 16, 2026
Merged

tekton-robot merged 1 commit into
tektoncd:mainfrom
arvindk-softwaredev:doc/list-command-examples

Conversation

@arvindk-softwaredev

@arvindk-softwaredev arvindk-softwaredev commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Part of #2850

Changes

Add -o json and -o yaml examples to the help text for list commands across core Tekton resources (pipeline, task, pipelinerun, taskrun, customrun) and Triggers resources (eventlistener, triggerbinding, clustertriggerbinding, triggertemplate).

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Sep 16, 2026
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 16, 2026
Add `-o json` and `-o yaml` examples to the help text for list
commands across core Tekton resources (pipeline, task, pipelinerun,
taskrun, customrun) and Triggers resources (eventlistener,
triggerbinding, clustertriggerbinding, triggertemplate).

Signed-off-by: Arvind <arvkrish@redhat.com>
@arvindk-softwaredev

Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@divyansh42

Copy link
Copy Markdown
Member

/retest

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Clarify that JSON/YAML output is a Kubernetes list resource containing an items field.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds JSON/YAML output examples to nine Tekton and Triggers list-command help texts, with regenerated documentation.

Changes:

  • Adds -o json and -o yaml examples.
  • Regenerates Markdown command references and manpages.
File summaries
File Reviewed change
pkg/cmd/triggertemplate/list.go Adds JSON/YAML list-output examples.
pkg/cmd/triggerbinding/list.go Adds JSON/YAML list-output examples.
pkg/cmd/taskrun/list.go Adds JSON/YAML list-output examples.
pkg/cmd/task/list.go Adds JSON/YAML list-output examples.
pkg/cmd/pipelinerun/list.go Adds JSON/YAML list-output examples.
pkg/cmd/pipeline/list.go Adds JSON/YAML list-output examples.
pkg/cmd/eventlistener/list.go Adds JSON/YAML list-output examples.
pkg/cmd/customrun/list.go Adds JSON/YAML list-output examples.
pkg/cmd/clustertriggerbinding/list.go Adds JSON/YAML list-output examples.
docs/man/man1/tkn-triggertemplate-list.1 Regenerated command documentation.
docs/man/man1/tkn-triggerbinding-list.1 Regenerated command documentation.
docs/man/man1/tkn-taskrun-list.1 Regenerated command documentation.
docs/man/man1/tkn-task-list.1 Regenerated command documentation.
docs/man/man1/tkn-pipelinerun-list.1 Regenerated command documentation.
docs/man/man1/tkn-pipeline-list.1 Regenerated command documentation.
docs/man/man1/tkn-eventlistener-list.1 Regenerated command documentation.
docs/man/man1/tkn-customrun-list.1 Regenerated command documentation.
docs/man/man1/tkn-clustertriggerbinding-list.1 Regenerated command documentation.
docs/cmd/tkn_triggertemplate_list.md Regenerated command documentation.
docs/cmd/tkn_triggerbinding_list.md Regenerated command documentation.
docs/cmd/tkn_taskrun_list.md Regenerated command documentation.
docs/cmd/tkn_task_list.md Regenerated command documentation.
docs/cmd/tkn_pipelinerun_list.md Regenerated command documentation.
docs/cmd/tkn_pipeline_list.md Regenerated command documentation.
docs/cmd/tkn_eventlistener_list.md Regenerated command documentation.
docs/cmd/tkn_customrun_list.md Regenerated command documentation.
docs/cmd/tkn_clustertriggerbinding_list.md Regenerated command documentation.
Review details
  • Files reviewed: 27/27 changed files
  • Comments generated: 9
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +51 to +55
List ClusterTriggerBindings as a JSON array:

tkn clustertriggerbinding list -o json

List ClusterTriggerBindings as a YAML array:
Comment thread pkg/cmd/customrun/list.go
Comment on lines +68 to +72
List CustomRuns as a JSON array:

tkn customrun list -o json

List CustomRuns as a YAML array:
Comment on lines +53 to +57
List EventListeners as a JSON array:

tkn eventlistener list -o json

List EventListeners as a YAML array:
Comment thread pkg/cmd/pipeline/list.go
Comment on lines +81 to +85
List Pipelines as a JSON array:

tkn pipeline list -o json

List Pipelines as a YAML array:
Comment on lines +70 to +74
List PipelineRuns as a JSON array:

tkn pipelinerun list -o json

List PipelineRuns as a YAML array:
Comment thread pkg/cmd/task/list.go
Comment on lines +71 to +75
List Tasks as a JSON array:

tkn task list -o json

List Tasks as a YAML array:
Comment thread pkg/cmd/taskrun/list.go
Comment on lines +73 to +77
List TaskRuns as a JSON array:

tkn taskrun list -o json

List TaskRuns as a YAML array:
Comment on lines +52 to +56
List TriggerBindings as a JSON array:

tkn triggerbinding list -o json

List TriggerBindings as a YAML array:
Comment on lines +51 to +55
List TriggerTemplates as a JSON array:

tkn triggertemplate list -o json

List TriggerTemplates as a YAML array:
@tekton-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: divyansh42

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 16, 2026
@pratap0007

Copy link
Copy Markdown
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 16, 2026
@tekton-robot
tekton-robot merged commit aeb7f63 into tektoncd:main Sep 16, 2026
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants