Skip to content

Conversation

@divyansh42
Copy link
Member

Changes

Reverting the template added to the record get command as it is a breaking change of the existing users who are using the CLI in the automation scripts
It was through PR #908
Here are the details: f37d74e#diff-824650fc9b46e72f0d1a957f97776b5cf8c3d9b7ee925d3ac71d844dde6b4da5

/kind bug

Submitter Checklist

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

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Tested your changes locally (if this is a code change)
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user-facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contain the string "action required" if the change requires additional action from users switching to the new release

Release Notes

[CLI] Revert record get command template changes to avoid breaking changes

Reverting the template added to the record get command
as it is a breaking change of the existing users who
are using the CLI in the automation scripts
It was through PR tektoncd#908

Signed-off-by: divyansh42 <diagrawa@redhat.com>
@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. labels Jun 25, 2025
@tekton-robot tekton-robot requested review from avinal and dibyom June 25, 2025 09:12
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 25, 2025
@divyansh42
Copy link
Member Author

/hold
Adding a hold as I am still testing the changes

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 25, 2025
@khrm khrm requested a review from Copilot June 25, 2025 09:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Revert the previous template-based output for the record get command to avoid breaking existing automation scripts.

  • Restore default output by replacing custom formatRecord logic with format.PrintProto.
  • Remove unused imports and the custom template/function definitions.
  • Update GetRecordCommand to call PrintProto on the RPC response.
Comments suppressed due to low confidence (2)

pkg/cli/dev/cmd/records/get.go:36

  • [nitpick] The variable name resp is generic—consider renaming it to record or result to more clearly reflect that it holds a Record resource.
			resp, err := params.ResultsClient.GetRecord(cmd.Context(), &pb.GetRecordRequest{

pkg/cli/dev/cmd/records/get.go:43

  • Add a unit or integration test to verify that format.PrintProto on the record response produces the expected output formats (JSON, YAML, etc.).
			return format.PrintProto(os.Stdout, resp, opts.Format)

Copy link
Contributor

@khrm khrm left a comment

Choose a reason for hiding this comment

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

/approve

@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: khrm

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 Jun 25, 2025
@khrm
Copy link
Contributor

khrm commented Jun 25, 2025

/cherry-pick release-v0.15.x

@tekton-robot
Copy link

@khrm: once the present PR merges, I will cherry-pick it on top of release-v0.15.x in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-v0.15.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@divyansh42 divyansh42 changed the title [CLI] Revert record get template changes [CLI] Revert record get command template changes Jun 25, 2025
@divyansh42
Copy link
Member Author

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 25, 2025
@khrm
Copy link
Contributor

khrm commented Jun 25, 2025

/hold cancel

@khrm
Copy link
Contributor

khrm commented Jun 25, 2025

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2025
@tekton-robot tekton-robot merged commit 978c628 into tektoncd:main Jun 25, 2025
7 checks passed
@tekton-robot
Copy link

@khrm: new pull request created: #1045

Details

In response to this:

/cherry-pick release-v0.15.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. 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.

3 participants