-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
The badge in GitHub comment doesn't link correctly and doesn't apply dark mode #868
Comments
Just noticed another thing: if you click on it, it opens the image but not the actual link. GitHub definitely doesn't like the HTML comment on the line end 😅 |
Oh wow. Nice catch @frankie567! Will prioritize this today. Found this gem of a discussion on the topic. Was interesting to find and learn about the However, I've been playing around with this and even with After some experimentation, I think GitHub simply treats these as an extension to what was written prior or next (depending on direction) if sufficient newlines are not there. In combination with still respecting classical HTML in all such nodes vs. So be it PS. Love that because you filed a bug about the badge and included the badge for illustrative purposes, Polar recognized the issue as badged and didn't badge it again 💪 However, tbh, I first thought it was a bug and got worried when I saw 2 badges 😅 |
Interesting! Funny to see something that seem trivial at first glance is actually a complex subject 🙃
Weeeell, to be 100% accurate, Polar did edit the issue. It didn't add the badge again but actually replaced the last (buggy) one. I had to re-edit to re-introduce the bug. You can see it in the edit history. |
Hope to get to this today. Ran into an unexpected issue #873 and have another support ticket I need to get to 😅 Hopefully, I'll ship this later in the evening or tomorrow.
I love those short lived little rabbit holes 😊
Oh, right. Yes, I forgot it does check and updates in case it doesn't match the expected. But doesn't do it in case it's been embedded once (to avoid forcing it post manual edits). |
Just a one-line fix 🤦🏼 Honestly, I thought it was going to be a bit more involved. I assumed it would require some tweaks to the core logic of how we badge which is always a bit sensitive to change. |
When badging an issue, Polar bot can manually add a GitHub comment on our behalf to the issue.
While the badge in the initial message correctly follows dark mode, the badge added in the comment does not:
Looking at the source, they are exactly the same, except for one carriage return before the
<!-- POLAR PLEDGE BADGE START -->
comment (crazy 🤯).This works with dark mode
You can pledge behind and help support this effort using Polar.sh
This does not work with dark mode
You can pledge behind and help support this effort using Polar.sh
The text was updated successfully, but these errors were encountered: