Skip to content

feat(cli): add command to create GitHub repo and release for a record - #1455

Merged
slint merged 1 commit into
zenodo:masterfrom
ciurana-life:dev-cli-gh-command
Sep 29, 2026
Merged

slint merged 1 commit into
zenodo:masterfrom
ciurana-life:dev-cli-gh-command

Conversation

@ciurana-life

@ciurana-life ciurana-life commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor
  • Adds invenio zenodo-dev add-gh-release which creates a Repository and a Release row linked to the given record, so the GitHub integration (release badge) ca be exercised locally without going through the real GitHub webhook flow.

Motivation

Creates the objects that result from linking a GitHub release to a record, so that we can test locally without going through GitHub.

For testing: inveniosoftware/invenio-rdm-records#2464

Usage

invenio zenodo-dev add-gh-release -r <recid>

@ciurana-life
ciurana-life force-pushed the dev-cli-gh-command branch 2 times, most recently from 9cc525b to 9e63eb7 Compare September 18, 2026 09:48
@ciurana-life
ciurana-life marked this pull request as ready for review September 18, 2026 09:58
Comment thread site/zenodo_rdm/cli.py Outdated
Comment thread site/zenodo_rdm/cli.py
Comment on lines +459 to +461
rel = Release(
tag="v1.0", repository=repo, record_id=record.id, status=ReleaseStatus.PUBLISHED
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shelve: as an approach I think it's fine for now, but there's a bigger task for improving fixtures and demo data.

This would be quite useful so that one can easily get a running local instance with all the data required to be able to render and use pages for the various features we have, without having to run additional CLI commands.

* Adds `invenio zenodo-dev add-gh-release` which creates a
Repository and a Release row linked to the given record, so
the GitHub integration (release badge) ca be exercised locally
without going through the real GitHub webhook flow.

Signed-off-by: Victor Ciurana <victor.ciurana.loeffler@cern.ch>
@slint
slint merged commit e814d8c into zenodo:master Sep 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants