Skip to content

feat: add JSON output to taskrun delete - #3086

Open
Debashich wants to merge 1 commit into
tektoncd:mainfrom
Debashich:feat/consistent-delete
Open

feat: add JSON output to taskrun delete#3086
Debashich wants to merge 1 commit into
tektoncd:mainfrom
Debashich:feat/consistent-delete

Conversation

@Debashich

@Debashich Debashich commented Aug 3, 2026

Copy link
Copy Markdown

Changes

Part of #2850

Add consistent -o/--output json support to taskrun delete, including machine-readable output of successfully deleted TaskRuns. Interactive confirmation prompts are suppressed when JSON output is requested.

Extend the shared deleter package with accessors for successful and related deletions, with corresponding unit tests.

Verified the relevant TaskRun delete/list output paths and existing test coverage. go test ./pkg/cmd/taskrun ./pkg/deleter passes.

Submitter Checklist

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

See [the contribution guide](https://github.com/tektoncd/cli/blob/master/CONTRIBUTING.md)
for more details.

Release Notes

Signed-off-by: Debashich <debashishsinha555@gmail.com>
@tekton-robot tekton-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Aug 3, 2026
@tekton-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign pratap0007 after the PR has been reviewed.
You can assign the PR to them by writing /assign @pratap0007 in a comment when ready.

The full list of commands accepted by this bot can be found 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 size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 3, 2026
@Debashich
Debashich marked this pull request as ready for review August 3, 2026 22:22
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 3, 2026
@tekton-robot
tekton-robot requested a review from pratap0007 August 3, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants