-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[GitHub] Added milestone property to GitHub issue details service #7864
[GitHub] Added milestone property to GitHub issue details service #7864
Conversation
Sorry but it's not clear to me what exactly you're proposing, and aspects of the code changes such as the randomization of colors make things even more muddy. For starters, could you elaborate on the nature of the change from a user/consumer perspective? Is it a badge that displays the name of the milestone an issue is tied to, if the issue is in fact associated with a milestone? |
@calebcartwright Thanks for taking this! I updated the description trying to explain the use case for this feature and the purpose of the color picking a bit better. Please let me know if you have more questions. |
Hi @calebcartwright , could you give an update on this, please? Thanks! |
Thank you for the additional detail. However, I still feel like we're trying to do too much here with the colorization. Shields' default's make use of colors in very intentional ways, and we need to remain consistent with those. I understand that you'd like to automatically standardize a colors across the same milestone, but in my opinion that's outside our scope and best left to the badge user. The associated milestone of a given issue is a purely informational/metadata and as such should have a simple, static |
@calebcartwright Thanks for the feedback! |
Yup, sorry if that wasn't clear, but definitely onboard with trying to get this incorporated 👍 |
ccd1a4b
to
b9e3cd6
Compare
b9e3cd6
to
f17bf20
Compare
@calebcartwright Perfect! |
|
Closed/reopened in the hope that it would unstick CI Regarding the Part of me feels like we should treat such cases as errors and do our typical |
I really wish I knew what circumstances cause CI to not run for some people, closing and reopening |
Looks like unit tests are failing can you take a look when time permits? You should be able to run a subset including the failing test via
otherwise everything else looks good and we should be all set to merge once the tests are passing |
@calebcartwright I fixed the failing unit test |
Service tests are failing, |
Sorry, missed that before, the tests should be fixed now. |
This PR adds a new property
milestone
in the GitHub issue details service that shows a badge with the milestone title of an issue if available.Use case
The purpose of this change is to allow for showing the title of the associated milestone of a GitHub issue (if one is available). In addition, the color of the badge should be derived from the title text, so that milestone badges with the same milestone title have the same color but different color, when the milestone title is different. Therefore, this PR implements picking a color based on the hash of a string.
This feature is very useful when listing issues for tracking purposes. For example when having a list of sub-issues / or related issues, we would like to see at a glance when those issues are planned for execution / related milestone. Here an example based on randomly chosen issues from this repo to demonstrate:
Current workaround
This use case is already possible through a workaround using the dynamic badge service, but it has some limitations:
will result in:
The limitation of the workaround are:
Therefore, I think this feature could be a good addition to the GitHub issue details service and would eliminate the above mentioned limitations.