Skip to content

feat: change branch protection timing to DOI creation - #52

Merged
neuromechanist merged 2 commits into
devfrom
feature/branch-protection-timing
Jan 21, 2026
Merged

neuromechanist merged 2 commits into
devfrom
feature/branch-protection-timing

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • Remove branch protection from dataset upload flow
  • Private datasets now allow direct pushes to main
  • Branch protection is applied when creating a concept DOI (admin doi create)

Rationale

  • Private repos: Owner's workspace, should allow direct pushes
  • DOI = permanent record: Needs protection to prevent accidental changes

Changes

  • src/commands/dataset.ts: Removed finalizeDataset call from upload flow
  • src/commands/admin.ts: Added finalizeDataset call after DOI creation

Future work

When a dataset publish command is added (to make repos public), branch protection should also be applied there.

Closes #47

- Remove branch protection from dataset upload flow
- Private datasets now allow direct pushes to main
- Branch protection is applied when creating a concept DOI
- This allows owners to freely modify private datasets

Closes #47
@github-actions

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR52

Version: 0.3.4-PR52.18cc2b0
Commit: 18cc2b0


🤖 Updated on each push.

- Add warnings field to FinalizeDatasetResponse type
- Display warnings from backend when protection partially fails
- Add ApiError type checking with specific guidance
- Add actionable manual setup instructions

This branch was previously deployed

1 inactive deployment
npm — 93e995d5 Deployed Jan 21, 2026 by neuromechanist
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.

Change branch protection timing (apply on public/DOI only)

1 participant