Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -o name to pipeline start #1540

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

chmouel
Copy link
Member

@chmouel chmouel commented Mar 21, 2022

Add -o name to start to simply output the pipelinerun that has been
started.

Tests are a bit of pain, it's nearly impossible (or i don't know how) to
fakeout, since I can't get a generate pipelinerunt to come out we just
test emptyness, it's okay tho because it tests the flags i guess 🙃.

This has been reformated with latest gofumpt
https://github.com/mvdan/gofumpt let me know if that confuses anyone and
would like me to break that change.

Co-authored-by: @liangyuanpeng

Release Notes

Add -o name to tkn pipeline start to easily get the name of the pipelinerun generated after starting a new one

Add -o name to start to simply output the pipelinerun that has been
started.

Tests are a bit of pain, it's nearly impossible (or i don't know how) to
fakeout, since I can't get a generate pipelinerunt to come out we just
test emptyness, it's okay tho because it tests the flags i guess 🙃.

This has been reformated with latest gofumpt
https://github.com/mvdan/gofumpt let me know if that confuses anyone and
would like me to break that change.

Co-authored-by: Lan Liang <[email protected]>
Signed-off-by: Chmouel Boudjnah <[email protected]>
@tekton-robot tekton-robot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Mar 21, 2022
@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/cmd/pipeline/start.go 66.1% 66.3% 0.2

@chmouel
Copy link
Member Author

chmouel commented Mar 21, 2022

@liangyuanpeng I have added you as co-author since you were on the original param in #1433 let me know if it's ok for you.

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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

The pull request process is described here

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 Mar 22, 2022
@piyush-garg
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 22, 2022
@tekton-robot tekton-robot merged commit 1230eb6 into tektoncd:main Mar 22, 2022
@chmouel chmouel deleted the return-name-to-start branch March 22, 2022 11:39
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 Denotes a PR that will be considered when it comes time to generate release notes. 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.

4 participants