Skip to content

Commit 3282872

Browse files
authored
Merge pull request #252 from NLeSC/237-issue-template-for-citation-data
Added issue template for citation data
2 parents b01915e + 9800359 commit 3282872

File tree

3 files changed

+54
-9
lines changed

3 files changed

+54
-9
lines changed

{{cookiecutter.project_name}}/.github/next_steps/04_citation.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,42 @@
22
title: 'Next step: Citation data'
33
---
44

5-
Citation data instructions
5+
It is likely that your `CITATION.cff` currently doesn't pass validation. The error messages you get from the [`cffconvert`]({{cookiecutter.repository}}/actions/workflows/cffconvert.yml) GitHub Action are unfortunately a bit cryptic, but doing the following helps:
6+
7+
- [ ] Check if the `given-name` and `family-name` keys need updating. If your family name has a name particle like `von` or `van` or `de`, use the `name-particle` key; if your name has a suffix like `Sr` or `IV`, use `name-suffix`. For details, refer to the schema description: https://github.com/citation-file-format/citation-file-format
8+
- [ ] Update the value of the `orcid` key. If you do not have an orcid yet, you can get one here [https://orcid.org/](https://orcid.org/).
9+
- [ ] Add more authors if needed
10+
- [ ] Update `date-released` using the YYYY-MM-DD format.
11+
- [ ] Update the `doi` key with the conceptDOI for your repository (see [https://help.zenodo.org](https://help.zenodo.org/) for more information on what a conceptDOI is). If your project doesn't have a DOI yet, you can use the string `10.0000/FIXME` to pass validation.
12+
- [ ] Update the `keywords` array with some keywords of your own that describe your project.
13+
14+
Once you do all the steps above, the `cffconvert` workflow will tell you what content it expected to see in `.zenodo.json`. Copy-paste from the GitHub Action log into a new file `.zenodo.json`. Afterwards, the `cffconvert` GitHub Action should be green.
15+
16+
17+
To help you keep the citation metadata up to date and synchronized, the [`cffconvert`]({{cookiecutter.repository}}/actions/workflows/cffconvert.yml) GitHub Action checks the following 6 aspects:
18+
19+
1. Whether your repository includes a `CITATION.cff` file.
20+
21+
_By including this file, authors of the software can receive credit for the work they put in._
22+
23+
1. Whether your `CITATION.cff` is valid YAML.
24+
25+
_Visit https://yamllint.com to see if the contents of your CITATION.cff are valid YAML._
26+
27+
1. Whether your `CITATION.cff` adheres to the schema (as listed in the `CITATION.cff` file itself under key `cff-version`).
28+
29+
_The Citation File Format schema can be found [here](https://github.com/citation-file-format/citation-file-format), along with an explanation of all the keys. You're advised to use the latest available schema version._
30+
31+
1. Whether your repository includes a `.zenodo.json` file.
32+
33+
_With this file, you can control what metadata should be associated with any future releases of your software on Zenodo: things like the author names, along with their affiliations and their ORCIDs, the license under which the software has been released, as well as the name of your software and a short description. If your repository doesn't have a .zenodo.json file, Zenodo will take a somewhat crude guess to assign these metadata._
34+
35+
_The `cffconvert` GitHub action will tell you what it expects to find in `.zenodo.json`, just copy and paste it to a new file named `.zenodo.json`. The suggested text ignores CITATION.cff's `version`, `commit`, and `date-released`. `cffconvert` considers these keys `suspect` in the sense that they are often out of date, and there is little purpose to telling Zenodo about these properties: Zenodo already knows._
36+
37+
1. Whether `.zenodo.json` is valid JSON.
38+
39+
_Currently unimplemented, but you can check for yourself on [https://jsonlint.com/](https://jsonlint.com/)._
40+
41+
1. Whether `CITATION.cff` and `.zenodo.json` contain equivalent data.
42+
43+
_This final check verifies that the two files are in sync. The check ignores CITATION.cff's `version`, `commit`, and `date-released`._

{{cookiecutter.project_name}}/CITATION.cff

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@ cff-version: "1.1.0"
44
title: "{{ cookiecutter.project_name }}"
55
authors:
66
-
7-
family-names: "{{ cookiecutter.full_name }}"
8-
given-names:
7+
family-names: {{ cookiecutter.full_name.split(' ')[-1] }}
8+
given-names: {{ cookiecutter.full_name.split(' ')[0] }}
99
orcid: "https://orcid.org/0000-0000-0000-0000"
1010
date-released: 20??-MM-DD
1111
doi: <insert your DOI here>
1212
version: "{{ cookiecutter.version }}"
1313
repository-code: "{{ cookiecutter.repository }}"
14-
identifiers:
1514
keywords:
15+
- keyword1
16+
- keyword2
1617
message: "If you use this software, please cite it using these metadata."
17-
license: "{{ cookiecutter.license }}"
18+
{{ { "Apache Software License 2.0": "license: Apache-2.0",
19+
"MIT license": "license: MIT",
20+
"BSD license": "license: BSD-3-Clause",
21+
"ISC license": "license: ISC",
22+
"GNU General Public License v3 or later": "license: GPL-3.0-or-later",
23+
"Not open source": ""
24+
}[cookiecutter.license] }}

{{cookiecutter.project_name}}/next_steps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ git remote add origin {{ cookiecutter.repository }}
1818
## Push the initial commit to a new repo on GitHub
1919

2020
Go to
21-
[https://github.com/{{cookiecutter.github_organization}}/repositories/new](https://github.com/{{cookiecutter.github_organization}}/repositories/new)
21+
[https://github.com/organizations/{{cookiecutter.github_organization}}/repositories/new](https://github.com/organizations/{{cookiecutter.github_organization}}/repositories/new)
2222
and create a new repository named `{{ cookiecutter.project_name }}` as an empty repository, then push your commits to GitHub:
2323

2424
```shell
@@ -27,9 +27,9 @@ git push --set-upstream origin main
2727

2828
## Check automatically generated issues
2929

30-
The first time you push to GitHub, a few issues outlining next steps will as soon as possible be added automatically
31-
([here]({{cookiecutter.repository}}/issues?q=author%3Aapp%2Fgithub-actions)). Resolve them to complete the setup of your
32-
repository.
30+
A short while after you push your commits to GitHub for the first time, a few issues outlining next steps will added
31+
automatically ([here]({{cookiecutter.repository}}/issues?q=author%3Aapp%2Fgithub-actions)). Resolve them to complete the
32+
setup of your repository.
3333

3434
## Project layout explained
3535

0 commit comments

Comments
 (0)