feat: deposit register.csv row to CODECHECK Register on publish (closes #10)#147
Merged
Conversation
Member
|
@subhanLabs can you please rebase so that this PR only contains your changes? Thanks! |
Resolves the codechecker-selected repository (#146), re-validates its codecheck.yml, and opens a PR against the register with the new row. Tested against testing-dev-register: codecheckers/testing-dev-register#176
subhanLabs
force-pushed
the
feature/10-register-deposit
branch
from
July 13, 2026 11:36
80c5418 to
85d7e78
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.
This PR is built on top of #139 (repository-selection /
repoWithCodecheckYaml) and should be merged after it.Summary
When a CODECHECK-opted-in article is published, the plugin now automatically opens a PR against the CODECHECK Register adding a row for it, closing #10.
What this adds
CodecheckRegisterDepositService— resolves the repository the codechecker marked as containingcodecheck.yml(from Feature/publication validation #139), re-validates it, formats it for the register (github::org/repo,zenodo::id,osf::id,gitlab::path), and builds the row.CodecheckGithubRegisterApiClient::depositRegisterRow()— appends the row toregister.csvand opens a PR against the configured register repo.CodecheckPlugin::depositToRegister()— hooked intoPublication::publish; runs for opted-in submissions; never blocks publication if the deposit fails.Tested against
codecheckers/testing-dev-register, usingcodecheckers/driftageas an existing repo with a realcodecheck.yml. Working example: codecheckers/testing-dev-register#176How to test
codecheck.ymlin acodecheckers/*repo (or your own Zenodo/OSF record).testing-dev-register's open PRs.