Skip to content

chore: disable deposit write commands for v0.1#55

Merged
ran-codes merged 1 commit intomainfrom
chore/disable-deposit-write-v0.1
Feb 19, 2026
Merged

chore: disable deposit write commands for v0.1#55
ran-codes merged 1 commit intomainfrom
chore/disable-deposit-write-v0.1

Conversation

@ran-codes
Copy link
Copy Markdown
Owner

@ran-codes ran-codes commented Feb 19, 2026

Summary

  • Comment out all deposit write subcommands (edit, update, discard, publish) and their CLI registration
  • Comment out corresponding write API methods (UpdateDeposition, EditDeposition, PublishDeposition, DiscardDeposition) keeping only GetDeposition
  • Comment out write method tests

ELI5

v0.1 is a read-only release — you can look at records but not change them. This wraps all the "change stuff" code in comments so it's still there for later but won't run. Will add write to later relaes

Test plan

  • go build ./... passes
  • go test ./... passes
  • zenodo.exe built locally
  • Verify zenodo deposit is no longer a recognized command

🤖 Generated with Claude Code

Comment out all deposit subcommands (edit, update, discard, publish)
and their corresponding API methods and tests. v0.1 is read-only.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 19, 2026 21:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR prepares the v0.1 release as read-only by commenting out all deposit write functionality while preserving the code for future re-enablement. The changes systematically disable deposit subcommands (edit, update, discard, publish) at both the CLI and API layers, leaving only read operations available.

Changes:

  • Commented out entire deposit CLI command file including all write subcommands and their registration
  • Commented out write API methods (UpdateDeposition, EditDeposition, PublishDeposition, DiscardDeposition) while keeping GetDeposition
  • Commented out corresponding write method tests and removed unused io import

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
internal/cli/deposit.go Entire file wrapped in block comment - disables all deposit CLI commands and subcommands
internal/api/depositions.go Write methods (Update/Edit/Publish/Discard) commented out, GetDeposition remains active
internal/api/depositions_test.go Write method tests commented out, unused io import removed

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ran-codes ran-codes mentioned this pull request Feb 19, 2026
30 tasks
@ran-codes ran-codes merged commit 12a7466 into main Feb 19, 2026
6 checks passed
@ran-codes ran-codes deleted the chore/disable-deposit-write-v0.1 branch February 19, 2026 23:13
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