-
Notifications
You must be signed in to change notification settings - Fork 250
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
Enable auto-select support in ClusterTask/TaskRun if only one is present #1154
Enable auto-select support in ClusterTask/TaskRun if only one is present #1154
Conversation
ab95c19
to
06740b2
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
06740b2
to
4a8df0f
Compare
The following is the coverage report on the affected files.
|
4a8df0f
to
d191e82
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
When only one clustertask is present then instead of prompting to user to select the clustertask at the time of running the clustertask describe command then clustertask will be autoselected and the output will be displayed. Also extracted to allClusterTaskNames function from pkg/cmd/clustertask/delete.go to pkg/clustertask/clustertask.go in order to maintain code consistency and also added unit tests for the same. Signed-off-by: vinamra28 <vinjain@redhat.com>
626c941
to
31b927f
Compare
The following is the coverage report on the affected files.
|
When only one taskrun is present then instead of prompting to user to select the taskrun at the time of running the taskrun describe command it will be autoselected and the output will be displayed. Signed-off-by: vinamra28 <vinjain@redhat.com>
31b927f
to
5b2e459
Compare
The following is the coverage report on the affected files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielhelfand, piyush-garg 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 |
#1167 | [Daniel Helfand] update condition tests from test builders to structs | 2020/09/16-11:10 #1154 | [vinamra28] Enable auto-select support in ClusterTaskDescribe if only one is present | 2020/09/16-17:00 #1154 | [vinamra28] Enable auto-select support in TaskRunDescribe if only one is present | 2020/09/16-17:00 #1173 | [Daniel Helfand] update README versions for v0.12.1 | 2020/09/16-17:21 #1176 | [Bart] Artwork/Logo added to the top of the README. | 2020/09/16-18:14 #1172 | [Chmouel Boudjnah] Fix rpm build for release | 2020/09/17-14:34 #1168 | [Daniel Helfand] update clustertask tests from test builders to structs | 2020/09/18-13:26 #1177 | [Vincent Demeester] tests: import pipeline internal builders 🏒 | 2020/09/18-17:31 #1179 | [vinamra28] Use --prefix-name option for tkn clustertask start | 2020/09/18-23:07 #1182 | [Daniel Helfand] update pipelineresource tests from test builders to structs | 2020/09/21-14:29 null | [Vincent Demeester] Remove release-note block indentation in PR template 🌮 | 2020/09/22-11:57 null | [savitaashture] Modify tkn version to accept ldflag and namespace flag | 2020/09/24-10:14 null | [savitaashture] Fix deployment fetch issue for multiple namespaces | 2020/09/25-11:54 null | [PuneetPunamiya] This patch fixes: | 2020/09/28-19:27 null | [Divyansh42] Modify tkn version output to hide Triggers and Dashboard version if they are not installed and added required unit tests. | 2020/09/29-04:57 null | [Piyush Garg] Bump pipeline and triggers dep | 2020/09/29-13:55 null | [Divyansh42] Enable auto-select support in pipelineDescribe if only one pipeline is present | 2020/09/29-17:29 null | [vinamra28] Add --use-taskrun for ClusterTask start | 2020/09/30-11:08 null | [Divyansh42] Enable auto select support in PipelineRunDescribe if only one PipelineRun is present | 2020/09/30-13:13 Signed-off-by: Daniel Helfand <helfand.4@gmail.com>
Changes
clustertask
is present then instead of prompting to user to select theclustertask
at the time of running theclustertask describe
command thenclustertask
will be autoselected and the output will be displayed.taskrun
is present then instead of prompting to user to select thetaskrun
at the time of running thetaskrun describe
command thentaskrun
will be autoselected and the output will be displayed.allClusterTaskNames
function frompkg/cmd/clustertask/delete.go
topkg/clustertask/clustertask.go
in order to maintain the code consistency and also added unit tests for it.Closes #1112
Signed-off-by: vinamra28 vinjain@redhat.com
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make check
make generated
See the contribution guide
for more details.
Release Notes