-
Notifications
You must be signed in to change notification settings - Fork 26
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
Support custom subject text #231
Conversation
… the compact parameter to make the badge shorter 在deps.rs合并我”支持自定义subject文本“的pr之前,先使用compact参数让徽章短一点 ref: deps-rs/deps.rs#231
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.
The feature works nicely in the general case. I did notice that there are no constraints to the subject content in terms of length and characters. Considering that any client can request these on the spot, it might be for the best that we add some safeguards (e.g. 100 maximum length).
Also, subject
is ignored if style
is given an unsupported value.
What do you think we should do when the length exceeds the limit? Should we treat it as if there is no |
As for this issue, it seems to be an existing bug. Consider the following two requests:
They each have one parameter that is invalid, but neither of them responds to the other valid parameter. |
@Enet4 |
@Enet4 Hello, two months have passed, can we merge this PR? |
is there any reason not to match the naming ? |
@robjtede Thanks for the review! I will make changes and reply tomorrow! |
…nputted with illegal values
Restrict custom subject text from being empty and from exceeding 100 in length, otherwise restore to default.
This is because we have been using the term |
@robjtede All modifications have been completed, waiting for your final decision on whether to 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.
i don't mind too much about the label, would be easy enough to add an alias later
thanks for your work on this 👍🏻 |
Close #230