Replace CITATION.md with CITATION.cff#1706
Replace CITATION.md with CITATION.cff#1706adenzler-nvidia wants to merge 1 commit intonewton-physics:mainfrom
Conversation
GitHub's "Cite this repository" widget requires a CITATION.cff file (Citation File Format). The previous CITATION.md was not being recognized. Validated with cffconvert against schema version 1.2.0.
📝 WalkthroughWalkthroughAdded a standardized Citation File Format (CITATION.cff) with project metadata including version, authors, title, and license information. Removed the existing CITATION.md file that contained citation guidance and BibTeX examples. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
closes #1008 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
CITATION.cff (2)
7-7: Userepository-codeinstead ofurlfor the GitHub source repository link.CFF 1.2.0 defines
repository-codeas the dedicated key for a source code repository URL, distinct fromurlwhich is for a website/landing page. The CFF schema guide's expanded example consistently usesrepository-codefor GitHub repository links. Usingurlfor a source code repository is semantically imprecise and may cause tools (Zenodo, Zotero, etc.) to not correctly identify the source repository.♻️ Proposed fix
-url: "https://github.com/newton-physics/newton" +repository-code: "https://github.com/newton-physics/newton"🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@CITATION.cff` at line 7, The CITATION.cff entry uses the generic key `url` for the GitHub repository; replace that key with the CFF-specific `repository-code` key so the source code repo is correctly identified (i.e., change the `url: "https://github.com/newton-physics/newton"` entry to `repository-code: "https://github.com/newton-physics/newton"` in the CITATION.cff file).
1-9: Consider adding theversionfield.The CFF 1.2.0 example from the official specification includes a
versionfield alongsidedate-released, and adding fields like version helps create more descriptive metadata for the software. Without it, the auto-generated BibTeX and APA output from GitHub's "Cite this repository" widget will omit version information, reducing citation precision. Consider pinning the current release version.♻️ Proposed addition
date-released: "2025-04-22" +version: "1.0.0" # replace with the actual current release version🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@CITATION.cff` around lines 1 - 9, Add a top-level version field to the CITATION.cff metadata (e.g., add a line like version: "1.2.3") so GitHub and citation tools include the release version; place it near the existing cff-version and date-released entries and use the repository's released tag/semantic version string to match the current release.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@CITATION.cff`:
- Line 7: The CITATION.cff entry uses the generic key `url` for the GitHub
repository; replace that key with the CFF-specific `repository-code` key so the
source code repo is correctly identified (i.e., change the `url:
"https://github.com/newton-physics/newton"` entry to `repository-code:
"https://github.com/newton-physics/newton"` in the CITATION.cff file).
- Around line 1-9: Add a top-level version field to the CITATION.cff metadata
(e.g., add a line like version: "1.2.3") so GitHub and citation tools include
the release version; place it near the existing cff-version and date-released
entries and use the repository's released tag/semantic version string to match
the current release.
Summary
CITATION.mdwithCITATION.cffso GitHub's "Cite this repository" widget worksCITATION.mdwas not being recognized by GitHub — the widget requires the Citation File Format (.cff)cffconvertTest plan
Summary by CodeRabbit