-
Notifications
You must be signed in to change notification settings - Fork 331
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 a GitHub discussions badge to the README #1299
Conversation
README.md
Outdated
@@ -2,6 +2,7 @@ | |||
|
|||
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) | |||
[![CI](https://github.com/nginx/unit/actions/workflows/ci.yml/badge.svg)](https://github.com/nginx/unit/actions/workflows/ci.yml "GitHub workflow CI") | |||
[![Discussions](https://img.shields.io/badge/N_Unit-discussions-green)](https://github.com/nginx/unit/discussions "NGINX Unit Discussion Board") |
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.
Please make the alt text GitHub Discussions
I think it would be better if the badge text read NGINX Unit
rather than 'N Unit'.
Also the 'green' seems a little off, interestingly if you chop off the 'n' (and more) from green you get a better colour, e.g
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.
Thanks for finding the "closer" color. Not sure why, but it seems equivalent to https://img.shields.io/badge/N_Unit-discussions-g
The suggested alt text makes sense.
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.
Hmm, actually I'm wondering if GitHub | discussions
would make more sense than NGINX Unit | discussions
?
What do other projects use?
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.
@ac000 , from a UI Text PoV, we'll see this badge only in the README for this well-labeled NGINX repo. So I think it's OK to label this GitHub | discussions
.
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.
I think the commit subject would be better as
Add a GitHub discussions badge to the README
1465441
to
ea5e0a6
Compare
I agree and have updated the Git commit |
README.md
Outdated
@@ -2,6 +2,7 @@ | |||
|
|||
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) | |||
[![CI](https://github.com/nginx/unit/actions/workflows/ci.yml/badge.svg)](https://github.com/nginx/unit/actions/workflows/ci.yml "GitHub workflow CI") | |||
[![GitHub Discussions](https://img.shields.io/badge/NGNIX_Unit-discussions-g)](https://github.com/nginx/unit/discussions "GitHub Discussions") |
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.
How about we use
https://img.shields.io/badge/GitHub-Discussions-009639
For the badge URL?
(That's NGINX green, well the green from the N logo from the README anyway...)
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.
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.
OTOH, the text in the green part of the badges are a little more difficult to read? (#feEngineeringIsHarderThanItLooks)
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.
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.
@ac000 , I'll go with whatever you prefer.
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.
Ooh I like that!
The main problem though is that the 'CI' badge changes dynamically depending on whether the workflows pass or not.
According to it may may be doable using https://shields.io/badges/endpoint-badge
But I'd want this as two separate patches anyway, so do the first patch that just adds the new badge, using GitHub instead of NGINX Unit for the left-hand side of the badge.
Then we can look at re-colouring the others...
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.
ea5e0a6
to
5f1261e
Compare
Actually, while you're at it, you could create another separate patch that adds a 'tooltip' for the repo status button, we have one for the CI button, something like "Repo Status - Active" |
5f1261e
to
7b389e0
Compare
Hi @mjang Looks good. Just one thing, as a general rule we use our corporate email addresses (@f5.com/@nginx.com) when committing. You can set it in the unit repository via
You can also adjust your commit to use it with
|
7b389e0
to
5cae808
Compare
- With NGINX green (hex code 009639) Signed-off-by: Andrew Clayton <[email protected]>
5cae808
to
98983f3
Compare
|
I need to update this with the NGINX color code.
I don't claim to know any/all PR requirements -- I'm using this as a learning experience.
ref nginx/unit-docs#150