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] Enhance visibility of security tag pull request titles #53
Comments
I'll look into this. |
take |
After thinking on this for a bit more, would it make sense to instead implement a feature whereby a user can configure custom colours for specific labels? This becomes a non-trivial problem but would definitely allow for more flexibility -- especially if [Security] is not a common label used by devs through all projects/repos -- just my two cents. And of course I might be wrong here as I am not too exposed to many projects |
@yushao2 I like your idea and my preference is to allow for configurable colours based on user-defined labels. As labels are very custom and it's hard to limit this to a specific subset. You can find a feature request to colourise the labels in #85 which aligns with the changes to the As for this feature request, it's limited to the |
Ah, okay. My bad on this -- I thought it was to be for Thanks |
Is your feature request related to a problem? Please describe.
I would like to highlight
[Security]
updates in yellow to identify them uniquely within a list of pull requestsDescribe the solution you'd like
I would like the pull request title to highlight
[Security]
in yellow, whilst the rest of the text remains white.Additional context
You can find a project with security updates required at
apoclyps/home_automation
This will produce results similar to the following
Implementation Notes
The colour is currently set to "[white]" by adding this string as a prefix to the pull request title in
reviews/reviews/layout/helpers.py
Lines 27 to 46 in fbd8b23
The Rich library has support for applying additional formatting to a line of text.
See: https://github.com/willmcgugan/rich/blob/e34eadb3a9354c2469fa2112400ce2690f2663ba/rich/__main__.py#L103-L106 which shows the markup section from https://raw.githubusercontent.com/willmcgugan/rich/master/imgs/features.png
The text was updated successfully, but these errors were encountered: