cranlogs.app icon indicating copy to clipboard operation
cranlogs.app copied to clipboard

Request: A combined CRAN version and GitHub version badge

Open karthik opened this issue 8 years ago • 14 comments

As discussed on Slack, we are trying to standardize READMEs across the rOpenSci project. In the interest of keeping badges concise and to prevent badge proliferation, we would humbly request a combined CRAN version/status + Github version badge.

Prototype: image

@gaborcsardi mentioned that this would require an entirely new badge. If package is not on CRAN, then badge would reflect that.

Why? This badge would allow a potential user to quickly determine whether a package is on CRAN, and if development on GitHub has progressed considerably more than the last CRAN version. 🙏

karthik avatar Jun 28 '17 16:06 karthik

Cool. What's the underscore for?

gaborcsardi avatar Jun 28 '17 16:06 gaborcsardi

Sorry that was a typo.

karthik avatar Jun 28 '17 16:06 karthik

Do you want to show the number of commits since 0.1? (Assuming that there is a 0.1 tag in the GH repo.) Sg. like

Or that's too much?

gaborcsardi avatar Jun 28 '17 16:06 gaborcsardi

i like it

sckott avatar Jun 28 '17 17:06 sckott

I love the idea! I'm not sure if it's possible to add a space before the +. I think that it would be great to have a tool tip that says what it means (e.g.

![The GitHub version is 32 commits ahead of the CRAN version](...)

karthik avatar Jun 28 '17 17:06 karthik

That's exactly what I was writing, @karthik. I'm not sure it makes sense without the explanation. Can badges have dynamic tooltips?

noamross avatar Jun 28 '17 17:06 noamross

I don't think dynamic tooltips are possible on GH, but we can have a generic static one, i.e.

CRAN version / GitHub version + number of commits since last release.

gaborcsardi avatar Jun 28 '17 17:06 gaborcsardi

Here it is with the space:

gaborcsardi avatar Jun 28 '17 17:06 gaborcsardi

LGTM @gaborcsardi!

karthik avatar Jun 28 '17 17:06 karthik

I can also try to put a thin space around the / signs, but sizing in an SVG is tricky in general.

gaborcsardi avatar Jun 28 '17 18:06 gaborcsardi

Anyway, hopefully next week, after UseR I'll get to it!

gaborcsardi avatar Jun 28 '17 18:06 gaborcsardi

Bump @gaborcsardi! 🙏

karthik avatar Jul 26 '17 20:07 karthik

Yes, sorry. Soon!

gaborcsardi avatar Jul 31 '17 08:07 gaborcsardi

shamelessly nudging a great idea! @gaborcsardi

tanho63 avatar Apr 05 '21 15:04 tanho63

Well, obviously this hasn't happened.

Unfortunately it is unlikely that it is going to happen, because I don't see a good way of getting the GH versions from GitHub.

  • The GitHub API is rate limited, so that's not great.
  • Getting the DESCRIPTION file from the repo is possible, but very slow.
  • We could cache it, but then it won't show the latest information.

So I am going to close it. Please open another issue if you have an idea of how this could be implemented.

gaborcsardi avatar Apr 18 '24 08:04 gaborcsardi