-
Notifications
You must be signed in to change notification settings - Fork 31
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
Keep communities
and grants
when exporting to an existing .zenodo.json file
#377
Comments
Thanks @bouweandela for reporting this. I'll transfer the issue to the relevant |
Hi Bouwe, The way I handle that in my projects is to
As follows: cffconvert --infile CITATION.cff --format zenodo --outfile .zenodo.citation.json
cat .zenodo.citation.json .zenodo.extras.json | jq -s add > .zenodo.json |
Thanks for the hint! Do I understand it correctly if I think that that will only work if we set up an extra GitHub action to do the publication to Zenodo? Currently, we use the workflow described here. |
yes, I think the automatic Github<->Zenodo integration isn't that smart, it just takes the current repo contents and reads the you could something like the following:
The main issues with this is that you have make sure people don't accidentally modify the |
In our project, we use the command
cffconvert --infile CITATION.cff --format zenodo --outfile .zenodo.json
to export contributors from our citation file to our zenodo file. However, this deletes the"communities"
and"grants"
entries from our .zenodo.json file (see here for a description) and it has already happened several times that new contributors accidentally deleted those in a pull request because not all reviewers understand how citation files and zenodo interact. Would it be possible to changecffconvert
so it keeps those entries when writing to an existing file?The text was updated successfully, but these errors were encountered: