-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
FEATURE: add a pretty output to toolkit check pr
#8416
FEATURE: add a pretty output to toolkit check pr
#8416
Conversation
This commit allows the developer to run ```bash toolkit check pr --pretty ``` and get a *GitHub*-friendly output to be copy-pasted to the PR.
This is to encourage the use of a common way of showing the tests pass - a red circle means the stage does not pass - a green circle means the stage passes - a black circle means the stage did not run because of previous stages
I'm confused, what's the |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8416 +/- ##
==========================================
+ Coverage 68.11% 68.50% +0.39%
==========================================
Files 620 620
Lines 99709 99723 +14
==========================================
+ Hits 67914 68317 +403
+ Misses 31795 31406 -389 |
yes of course, let me show you 👍 |
without the
|
so the |
.github/pull_request_template.md
Outdated
@@ -25,6 +25,10 @@ Make sure you've run and fixed any issues with these commands: | |||
> use toolkit.nu # or use an `env_change` hook to activate it automatically | |||
> toolkit check pr | |||
> ``` | |||
> you can replace this whole "Tests + Formatting" section by the list output of |
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.
let's just make --pretty
the default and not add these lines. I'd like to keep this template as abbreviated as possible.
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.
should be fixed in 9f972bc 😋
is there anything i can do here? 😋 |
Lost track of it. Thanks |
no worries, it's far easier for me to keep track of my own stuff 😉 |
when i write a PR, i run the tests and i like to have a pretty output to make extra clear which one of the tests did run, which one did not, etc, etc...
this always end up a variation of the template
but with emojis and without the descriptions
in this PR, i came up with a way to do that automatically with the
toolkit
introduced in #8152 😋Description
this PR
toolkit::pretty-print-command
to print the command names being run with backticks and some colorstoolkit::report
to return a "report" of the PR check stages => seehelp toolkit check pr
--pretty
option totoolkit check pr
to return a list-with-emojis version of the check report, i.e. a GitHub-friendly list to drop in place in the "Tests + Formatting" sectiontoolkit check pr --pretty
in the PR template to make it easily visible to anyonehope you'll like it, that's not a huge deal but that's my attempt to encourage developers to show that they run the tests, what stages did pass and which one did not 😌 👋
User-Facing Changes
the developer can now use
toolkit check pr --pretty
to have a ready-to-use output for GitHubTests + Formatting
After Submitting