Skip to content

Commit cc87ebf

Browse files
ci: add converter codemeta to zenodo (#135)
* ci: add converter codemeta to zenodo * Bump version to 0.5.1 * doc: tmp change codemeta context to be validated by codemeta2zenodo action * doc: update codemeta.json with values accepted by eossr-codemeta2zenodo * ci: update codemeta2zenodo action version to 1.3 * doc: small change on codemeta.json * Update .zenodo.json from codemeta.json * doc: reset codemeta context to w3id.org link --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ded08d4 commit cc87ebf

7 files changed

Lines changed: 142 additions & 11 deletions

File tree

.github/workflows/zenodo.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Update Zenodo Metadata
2+
3+
on:
4+
push:
5+
paths:
6+
- 'codemeta.json'
7+
workflow_dispatch:
8+
9+
jobs:
10+
convert:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v6
15+
16+
- name: Convert CodeMeta to Zenodo
17+
uses: escape2020/codemeta2zenodo@v1.3.0
18+
with:
19+
overwrite: true
20+
21+
- name: Commit changes
22+
run: |
23+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
24+
git config --local user.name "github-actions[bot]"
25+
git add .zenodo.json
26+
git diff --quiet && git diff --staged --quiet || git commit -m "Update .zenodo.json from codemeta.json"
27+
git push

.zenodo.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"upload_type": "software",
3+
"creators": [
4+
{
5+
"name": "Software Understanding"
6+
},
7+
{
8+
"name": "Tom François",
9+
"affiliation": "Univ. Savoie Mont-Blanc, CNRS, LAPP",
10+
"orcid": "https://orcid.org/0000-0001-5226-3089"
11+
}
12+
],
13+
"contributors": [
14+
{
15+
"name": "Thomas Vuillaume",
16+
"affiliation": "Univ. Savoie Mont-Blanc, CNRS, LAPP",
17+
"type": "Other"
18+
},
19+
{
20+
"name": "Daniel Garijo",
21+
"affiliation": "Universidad Politécnica de Madrid ",
22+
"type": "Other"
23+
},
24+
{
25+
"name": "Anas El Hounsri",
26+
"affiliation": "Universidad Politécnica de Madrid ",
27+
"type": "Other"
28+
},
29+
{
30+
"name": "Tom François",
31+
"orcid": "https://orcid.org/0000-0001-5226-3089",
32+
"type": "ContactPerson"
33+
}
34+
],
35+
"related_identifiers": [
36+
{
37+
"scheme": "url",
38+
"identifier": "https://github.com/SoftwareUnderstanding/sw-metadata-bot",
39+
"relation": "isDerivedFrom",
40+
"resource_type": "software"
41+
},
42+
{
43+
"scheme": "url",
44+
"identifier": "https://raw.githubusercontent.com/SoftwareUnderstanding/sw-metadata-bot/main/README.md",
45+
"relation": "isDocumentedBy",
46+
"resource_type": "publication-softwaredocumentation"
47+
}
48+
],
49+
"publication_date": "2026-01-16",
50+
"description": "A repository to keep the code of the RSMetaCheck bot for pushing issues with existing repository metadata",
51+
"keywords": [
52+
"codemeta",
53+
"bot",
54+
"software",
55+
"metadata"
56+
],
57+
"license": "mit",
58+
"title": "sw-metadata-bot",
59+
"version": "0.5.1",
60+
"access_right": "open"
61+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19468976.svg)](https://doi.org/10.5281/zenodo.19468976)
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5-
[![Version](https://img.shields.io/badge/version-0.5.0-blue.svg)](https://github.com/SoftwareUnderstanding/sw-metadata-bot/releases)
5+
[![Version](https://img.shields.io/badge/version-0.5.1-blue.svg)](https://github.com/SoftwareUnderstanding/sw-metadata-bot/releases)
66
[![Python 3.11--3.12](https://img.shields.io/badge/python-3.11--3.12-blue.svg)](https://www.python.org/downloads/)
77
[![CI (build)](https://github.com/SoftwareUnderstanding/sw-metadata-bot/actions/workflows/ci.yml/badge.svg)](https://github.com/SoftwareUnderstanding/sw-metadata-bot/actions/workflows/ci.yml)
88
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)

codemeta.json

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"author": [
55
{
66
"@id": "https://github.com/SoftwareUnderstanding",
7-
"@type": "Organization"
7+
"@type": "Organization",
8+
"name":"Software Understanding"
89
},
910
{
1011
"affiliation": {
@@ -14,10 +15,45 @@
1415
"email": "tom.francois@lapp.in2p3.fr",
1516
"@id": "https://orcid.org/0000-0001-5226-3089",
1617
"givenName": "Tom",
17-
"familyName": "François",
18+
"familyName": "Fran\u00e7ois",
1819
"@type": "Person"
1920
}
2021
],
22+
"contributor": [
23+
{
24+
"id": "https://orcid.org/0000-0002-5686-2078",
25+
"@type": "Person",
26+
"affiliation": {
27+
"@type": "Organization",
28+
"name": "Univ. Savoie Mont-Blanc, CNRS, LAPP"
29+
},
30+
"email": "thomas.vuillaume@lapp.in2p3.fr",
31+
"familyName": "Vuillaume",
32+
"givenName": "Thomas"
33+
},
34+
{
35+
"id": "https://orcid.org/0000-0003-0454-7145",
36+
"@type": "Person",
37+
"affiliation": {
38+
"@type": "Organization",
39+
"name": "Universidad Politécnica de Madrid "
40+
},
41+
"email": "daniel.garijo@upm.es",
42+
"familyName": "Garijo",
43+
"givenName": "Daniel"
44+
},
45+
{
46+
"id": "https://orcid.org/0009-0005-6868-4511",
47+
"@type": "Person",
48+
"affiliation": {
49+
"@type": "Organization",
50+
"name": "Universidad Politécnica de Madrid "
51+
},
52+
"email": "a.elhounsri@upm.es",
53+
"familyName": "El Hounsri",
54+
"givenName": "Anas"
55+
}
56+
],
2157
"codeRepository": "https://github.com/SoftwareUnderstanding/sw-metadata-bot",
2258
"dateCreated": "2025-12-15",
2359
"dateModified": "2026-06-03",
@@ -39,6 +75,7 @@
3975
"version": "3"
4076
}
4177
],
78+
4279
"runtimePlatform": "Python 3.11, Python 3.12",
4380
"releaseNotes": "## What's Changed\n* Fix beta test feedbacks by @francoto in https://github.com/SoftwareUnderstanding/sw-metadata-bot/pull/7\n\n\n**Full Changelog**: https://github.com/SoftwareUnderstanding/sw-metadata-bot/compare/v0.1.0...v0.1.1",
4481
"softwareRequirements": [
@@ -47,10 +84,16 @@
4784
"python-dotenv>=1.0.0",
4885
"requests>=2.32.5"
4986
],
50-
"version": "0.5.0",
51-
"codemeta:contIntegration": {
52-
"@id": "https://raw.githubusercontent.com/SoftwareUnderstanding/sw-metadata-bot/main/.github/workflows/ci.yml"
87+
"version": "0.5.1",
88+
"softwareVersion": "0.5.1",
89+
"maintainer": {
90+
"@id": "https://orcid.org/0000-0001-5226-3089",
91+
"givenName": "Tom",
92+
"familyName": "Fran\u00e7ois",
93+
"email": "tom.francois@lapp.in2p3.fr",
94+
"@type": "Person"
5395
},
96+
"readme": "https://raw.githubusercontent.com/SoftwareUnderstanding/sw-metadata-bot/main/README.md",
5497
"continuousIntegration": "https://raw.githubusercontent.com/SoftwareUnderstanding/sw-metadata-bot/main/.github/workflows/ci.yml",
5598
"developmentStatus": "active",
5699
"issueTracker": "https://github.com/SoftwareUnderstanding/sw-metadata-bot/issues",

interrogate_badge.svg

Lines changed: 3 additions & 3 deletions
Loading

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "sw-metadata-bot"
7-
version = "0.5.0"
7+
version = "0.5.1"
88
description = "Metadata quality bot for software repositories, leveraging metacheck for analysis and GitHub/GitLab APIs for issue management."
99
readme = "README.md"
1010
requires-python = ">=3.11,<3.13"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)