Repository navigation
Add dataset release and update CLI commands - #133
Merged
neuromechanist merged 4 commits intoFeb 12, 2026
Merged
Conversation
Implement `nemar dataset release` for version bump PRs and `nemar dataset update` for pushing local changes via PR. - Add semver utility (src/lib/semver.ts) with tests - Add GET /datasets/:id/versions backend endpoint - Add getFileContent() to GitHub service - Update pr-merge workflow: always cleanup staging - Add D1 migration step to deploy-backend workflow - Fix 0011 migration: remove non-constant DEFAULT - Add versioning guide and update command docs
- Log errors in catch blocks instead of silently swallowing - Check git add exit codes before proceeding to commit - Guard monitoring mode behind successful PR creation - Validate getFileContent response shape - Fix collaborator query (remove non-existent status column) - Add D1 migration step to production deploy workflow
- Version fetch failures are now hard errors (not silent "1.0.0" fallback) - Wrap all JSON.parse calls in try-catch with user-friendly messages - Check git status exit code in update command - Remove unused repoName variable in release monitor - Narrow VersionInfo.provider to "ezid" | "zenodo" union type - Fix misleading comment on file categorization regex - Clarify cleanup-staging step name for always() behavior - Add maxAttempts comment in update monitor loop
Bare catch blocks reported all errors as "invalid JSON" which could hide permission or filesystem errors. Now checks for SyntaxError to provide accurate error messages.
neuromechanist
deleted the
118-add-interactive-dataset-versioning-cli-command
branch
February 12, 2026 16:33
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.
Summary
nemar dataset release <dataset-id>for creating version bump PRs (replaces oldversionstub)nemar dataset update [path]for pushing local data/metadata changes via PRGET /datasets/:id/versionsbackend endpoint for version historydocs/guides/versioning.md) and update command reference docsCloses #118, closes #23.
Changed files
src/lib/semver.tstest/semver.test.tssrc/commands/dataset.tsversionstub withrelease; addupdatesrc/lib/api.tsgetVersionHistory()client functionbackend/src/routes/datasets.tsGET /datasets/:id/versionsendpointbackend/src/services/github.tsgetFileContent(); update pr-merge cleanup.github/workflows/deploy-backend.ymlbackend/src/db/migrations/0011_last_activity.sqldocs/commands/dataset.mddocs/guides/versioning.mddocs/index.mdTest plan
bun run lint-- cleanbunx tsc --noEmit-- clean (frontend + backend)bun test-- 409 pass, 0 fail, 35 skipnemar dataset release nm099999 --type patchnemar dataset update