-
Notifications
You must be signed in to change notification settings - Fork 39
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
autoupdate CITATION.cff #398
Comments
No! I keep looking too, it seems like a no-brainer. It seems like we need a github action to use Maybe @keewis is interested in implementing this :) |
If you implement a github action that auto updates the cff file on every release I’m definitely copying it! |
if I understand correctly, we'd need a post-release workflow that queries zenodo to find the doi of the most recent release and creates a PR from that (using I wonder if we should try to push this into the Edit: actually, the referencing issue above mentions a script that does all the tricky parts (fetch the doi of the most recent release): newhinton/Zettlr@d8d9edb |
Well it's a bit circular that way. IMO we want to update |
I don't think we can automate adding new contributors to the authors: Where would you get the information to put into For the version / doi, I agree, this is a bit circular. To make it less circular, we'd have to: create a new doi and put that and the new version into Of course, that assumes the authors don't have to be modified on release as well, but the case where you want to collect authors that contributed to a specific release can be easily implemented by clearing the authors after each release, and have another action add contributors from |
I used https://con.github.io/tributors/docs/getting-started in #399 I can't remember now but it is bootstrap-able. You can create a CITATION.cff entry using First Name, Last Name, possible affiliation from github data basically. And ask the contributor to update the rest |
You can always make the CFF point to the "cite-all-versions" zenodo DOI. |
If we can use the "cite-all-versions" doi that makes it much simpler. I wonder if creating a For example, the commit that changes the version section from v1.0.1 (*unreleased*)
--------------------- to v1.0.1 (2023-04-02)
------------------- would automatically be detected as a release commit and the hook would update |
yes just did this.
Ah now I see the confusion. I had totally forgotten that there is a version and release date in I think it's most important to be prompted to add a new contributor to |
So the CITATION.cff points to an old version:
cf-xarray/CITATION.cff
Lines 6 to 9 in 2713858
I've been hitting this issue before when I used CITATION.cff to point to a zenodo repo. I thought I could add the "cite all versions zenodo link", e.g., 10.5281/zenodo.4749735. But then the version in the CITATION.cff file wouldn't be updated... I thought that surely there should be a way that the version of CITATION.cff is updated every time there is a new release but I haven't figured it out.
Any thoughts or solutions to this issue?
The text was updated successfully, but these errors were encountered: