-
Notifications
You must be signed in to change notification settings - Fork 21
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
codemetar and releases #59
Comments
Great question. I've been adding it to the README.Rmd, usually in a Having a pre-commit hook to update codemeta.json if the DESCRIPTION file changes sounds like a pretty good idea to me! Interested in making a PR? I basically assume changes to |
Ok can you assign this issue to me? I hope that copying the way I'm working on that package, it is here but 1) right now it only helps to add badges, I have clear priorities 😂 2) I'm not entirely convinced we could make people adopt an |
Btw codemeta.json should change if DESCRIPTION or README.md change, right? (because of the status info contained in a badge in the README) Any other source of information I should take into account? |
assigned! yeah, technically that's right, though that might be annoying if README is changing in other ways |
I'm using |
Thanks. yeah, if we're copy-pasting the un-exported |
I don't think there's a plan to export them and am not sure they'd be part of the possible package mentioned in r-lib/usethis#126 |
Note that I chatted with Jenny and Ben Marwick and both would be happy to have a |
Oh nice! The pre commit hook should still be in this pkg right? |
I think we should put everything for |
Nice, that's awesome! Sounds like we should alias |
No I think it'd be an alias for Not sure where updates should take place. 🤔 by hand with I think it'd be the same workflow as for pkgdown website initialization & updates but this isn't totally wrapped yet, |
@maelle , yeah, |
Aaah ok thanks for clarifying ☺ |
I think But happy to make this one opt-in or opt-out (my preferred option 😇) |
👍 ah, nice! we can do opt-out then if |
I updated my PR (in particular it turned out the code for creating the hook wasn't in the right function 🙈 ).
|
add pre-commit hook for DESCRIPTION vs codemeta.json cf #59
|
It turned out that one can add release reminders inside the package itself cf r-lib/devtools#1754 (comment) I'd be in favor of adding the question rudely in a release-questions.R file (if no other release_questions can be found!) and of messaging the author it was done so rather than messaging them to paste the code in an R file. But I'm still thinking about how rude it'd be 🤔 |
Closing this because it is solved in dev 👼 |
Sorry if I missed this in the docs.
How could one ensure that codemeta.json is updated often enough?
Could one hope to add a check to
devtools::release
checks? E.g. if "codemeta.json" exists the check would be to look when it was updated or just to ask the developper whether they updated it.Could the first use of
codemetar::write_codemeta
create a pre-commit hook like the one thatusethis
has for README.Rmd vs README.md (comparing codemeta.json update time to these of the files it uses as sources of information)The text was updated successfully, but these errors were encountered: