Skip to content
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

Request: A combined CRAN version and GitHub version badge #28

Closed
karthik opened this issue Jun 28, 2017 · 15 comments
Closed

Request: A combined CRAN version and GitHub version badge #28

karthik opened this issue Jun 28, 2017 · 15 comments

Comments

@karthik
Copy link

karthik commented Jun 28, 2017

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. 🙏

@gaborcsardi
Copy link
Contributor

Cool. What's the underscore for?

@karthik
Copy link
Author

karthik commented Jun 28, 2017

Sorry that was a typo.

@gaborcsardi
Copy link
Contributor

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?

@sckott
Copy link

sckott commented Jun 28, 2017

i like it

@karthik
Copy link
Author

karthik commented Jun 28, 2017

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](...)

@noamross
Copy link

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

@gaborcsardi
Copy link
Contributor

gaborcsardi commented Jun 28, 2017

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
Copy link
Contributor

Here it is with the space:

@karthik
Copy link
Author

karthik commented Jun 28, 2017

LGTM @gaborcsardi!

@gaborcsardi
Copy link
Contributor

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

@gaborcsardi
Copy link
Contributor

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

@karthik
Copy link
Author

karthik commented Jul 26, 2017

Bump @gaborcsardi! 🙏

@gaborcsardi
Copy link
Contributor

Yes, sorry. Soon!

@tanho63
Copy link

tanho63 commented Apr 5, 2021

shamelessly nudging a great idea! @gaborcsardi

@gaborcsardi
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants