feat(cli): add command to create GitHub repo and release for a record - #1455
Merged
Merged
Conversation
ciurana-life
force-pushed
the
dev-cli-gh-command
branch
2 times, most recently
from
September 18, 2026 09:48
9cc525b to
9e63eb7
Compare
ciurana-life
marked this pull request as ready for review
September 18, 2026 09:58
6 of 10 tasks
slint
approved these changes
Sep 28, 2026
Comment on lines
+459
to
+461
| rel = Release( | ||
| tag="v1.0", repository=repo, record_id=record.id, status=ReleaseStatus.PUBLISHED | ||
| ) |
Member
There was a problem hiding this comment.
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>
ciurana-life
force-pushed
the
dev-cli-gh-command
branch
from
September 29, 2026 09:00
62d5991 to
a898714
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
invenio zenodo-dev add-gh-releasewhich 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>