Skip to content

Commit 8229e73

Browse files
schwalbe10tkoyama010pre-commit-ci[bot]Copilot
authored
Feat: add citation.cff details (#540)
* add citation details * '[pre-commit.ci 🤖] Apply code format tools to PR' * Update documentation/repository-files/license-files.md Co-authored-by: Copilot <[email protected]> * Update documentation/repository-files/license-files.md Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Tetsuo Koyama <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]>
1 parent 9526c3f commit 8229e73

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

documentation/repository-files/license-files.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,42 @@ This would not be true with a GPL licensed package. `GPL-3` packages can include
130130

131131
## What about software citation?
132132

133-
While many permissive licenses do not require citation we STRONG encourage that you cite all software that you use in papers, blogs and other publications. You tell your users how to cite your package by using a [citation.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files). We will cover this topic when we talk about creating DOI's for your package using Zenodo.
133+
While many permissive licenses do not require citation, we strongly encourage that you cite all software that you use in papers, blogs, and other publications. You tell your users how to cite your package by using a [citation.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files).
134134

135-
<!-- TODO: add link when lesson is created - but also we don't yet know how citation.cff files work with Zenodo (do they work??) will the citation info update with a new Zenodo link
135+
### Citation.cff files: Making your software citable
136136

137-
These files - we need to understand if that date releases auto populates or forces zenodo to modify it's citation. If it's not dynamic it could be problematic
137+
A `CITATION.cff` file is a machine-readable file that provides citation information for your software package. The "cff" stands for "Citation File Format," which is a standardized format for software citation metadata.
138138

139-
-->
139+
#### What citation.cff files add to your repository
140+
141+
When you add a `CITATION.cff` file to your repository, GitHub automatically detects it and displays a "Cite this repository" button. This makes it easy for users to properly cite your software. The file contains standardized citation information that tools and services can automatically read and use. GitHub will generate both APA and BibTeX citation formats for users.
142+
143+
#### How dates are tracked in citation.cff files
144+
145+
The citation file tracks important dates for your software. The `date-released` field shows when the current version was released. The `date-published` field shows when the software was first made available. You also include a `version` field with the specific version number.
146+
147+
You should update these dates with each new release so people cite the correct version of your software.
148+
149+
#### Integration with Zenodo
150+
151+
Citation.cff files work well with Zenodo, which is a popular place to store research software and get DOIs. When you create a Zenodo release, it can automatically pull information from your citation file. This keeps your citation information the same between GitHub and Zenodo. You can also include your Zenodo DOI in the citation file. Each time you make a new GitHub release, it can create a new Zenodo version with updated citation information.
152+
153+
154+
Here's a basic example of what a `CITATION.cff` file might look like:
155+
156+
```yaml
157+
cff-version: 1.2.0
158+
message: "If you use this software, please cite it as below."
159+
authors:
160+
- family-names: "Your Last Name"
161+
given-names: "Your First Name"
162+
orcid: "https://orcid.org/0000-0000-0000-0000"
163+
title: "Your Package Name"
164+
version: 1.0.0
165+
doi: "10.5281/zenodo.1234"
166+
date-released: 2025-07-12
167+
url: "https://github.com/yourusername/your-package"
168+
```
140169
141170
# References
142171

0 commit comments

Comments
 (0)