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 emojis to pipeline/pipelinerun/task/taskrun describe #620

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

chmouel
Copy link
Member

@chmouel chmouel commented Jan 16, 2020

Not showing when we don't want colours (or not a real terminal).

The choice of emojis are fairly abritrary, I am open for suggestions :D

Some screenshots :

Pipeline

image

PipelineRun

2020-01-16__22-42-33-20983

Task

image

TaskRun

image

@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 16, 2020
@tekton-robot
Copy link
Contributor

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

File Old Coverage New Coverage Delta
pkg/formatted/color.go 35.3% 47.7% 12.4

@@ -34,7 +34,7 @@ import (
const describeTemplate = `{{decorate "bold" "Name"}}: {{ .PipelineName }}
{{decorate "bold" "Namespace"}}: {{ .Pipeline.Namespace }}

{{decorate "underline bold" "Resources\n"}}
{{decorate "resources" ""}}{{decorate "underline bold" "Resources\n"}}
Copy link
Member Author

@chmouel chmouel Jan 16, 2020

Choose a reason for hiding this comment

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

tried to do stuff like this :

{{ decorate "inputresources" "" | decorate "underline bold" "Input Resources\n"}}

but I am getting the error message :

Error: template: Describe Task:4:33: executing "Describe Task" at <decorate>: wrong number of args for decorate: want 2 got 3

🤔

@tekton-robot
Copy link
Contributor

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

File Old Coverage New Coverage Delta
pkg/cmd/pipelinerun/describe.go 89.8% 87.8% -2.0
pkg/formatted/color.go 35.3% 65.9% 30.6

@tekton-robot
Copy link
Contributor

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

File Old Coverage New Coverage Delta
pkg/formatted/color.go 35.3% 65.9% 30.6

Not showing when we don't want colours (or not a real terminal).

Add TestDecoration to test properly decorations

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
@tekton-robot
Copy link
Contributor

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

File Old Coverage New Coverage Delta
pkg/formatted/color.go 35.3% 65.9% 30.6

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/meow

@tekton-robot
Copy link
Contributor

@vdemeester: cat image

In response to this:

/meow

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.

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 22, 2020
@chmouel
Copy link
Member Author

chmouel commented Jan 22, 2020

/retest

failure was :

I0122 09:51:44.309]  detail: u"All cluster resources were brought up, but: only 2 nodes out of 3 have registered; this is likely due to Nodes failing to start correctly; try re-creating the cluster or contact support if that doesn't work."

return fmt.Sprintf("📨 ")
case "outputresources":
return fmt.Sprintf("📡 ")
case "steps":
Copy link
Member

Choose a reason for hiding this comment

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

👣 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

I didnt take the black feet version due of not showing very well on dark terminal... i guess those one works on dark and light background terminal....

Copy link
Member

Choose a reason for hiding this comment

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

Oh yeah, no worries! More approving and wanted to mix it up.

Copy link
Member

@danielhelfand danielhelfand left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 22, 2020
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danielhelfand, 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:
  • OWNERS [danielhelfand,vdemeester]

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 merged commit f430ce7 into tektoncd:master Jan 22, 2020
@chmouel chmouel deleted the emojis branch January 22, 2020 14:46
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. cla: yes lgtm Indicates that a PR is ready to be merged. 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.

5 participants