Skip to content

Release v0.7.14 - #260

Merged
neuromechanist merged 6 commits into
mainfrom
dev
Mar 8, 2026
Merged

neuromechanist merged 6 commits into
mainfrom
dev

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • bun run build compiles
  • bun run typecheck passes
  • Manual: nemar dataset push on public dataset shows clear error
  • Manual: nemar dataset push on private dataset works as before

* Preserve DatasetDOI, sync title, add uploader contributor

- Preserve existing DatasetDOI in SourceDatasets before overwriting
  with NEMAR concept DOI during publish workflow
- Auto-sync BIDS Name changes to EZID DOI metadata via the LLM
  enrichment webhook (full DataCite XML rebuild)
- Add data uploader as DataCurator contributor in DataCite metadata
  when they are not listed as a BIDS Author
- Update buildOrcidEnrichment to always pass through uploader fields

Closes #256

* Address review: LEFT JOIN, broader sync, tests

- Use LEFT JOIN for users table to avoid masking orphaned datasets
- Broaden DOI sync to run on every enrichment (not just name change)
- Distinguish config vs transient errors in DOI sync catch block
- Skip parseAuthorName for usernames in DataCurator contributor
- Add 4 tests for DataCurator contributor logic in bidsToDataCite

* Add ORCID to contributor, fix substring matching

- Add orcid field to DataCiteContributor interface and XML builder
- Attach uploaderOrcid to DataCurator contributor entry
- Use word-boundary regex instead of substring matching for
  uploader-is-author check to avoid false positives
- Add tests for ORCID on contributor and word-boundary matching
- Add GIT_TERMINAL_PROMPT=0 to runCommand() to prevent git from
  blocking on credential prompts (root cause of #257 hang)
- Add optional timeout parameter to runCommand() as safety net
- Add proactive visibility check in push command: detect public
  datasets and block direct push to main with actionable guidance
- Detect branch protection errors (GH006) in push failure path
  and show clear suggestions (use update or push --pr)
- Add checkPrerequisitesForCommand("push") to push command
- Replace inline git/gh checks in update and release commands
  with centralized checkPrerequisitesForCommand() calls
- Add "update" and "release" to NemarCommand type

Closes #257
- Don't treat null branch name as "on main" (could block
  legitimate pushes from feature branches)
- Extract printBranchProtectionSuggestions() to deduplicate
  suggestion text between proactive check and fallback handler
- Improve catch comment accuracy
- Document timeout return-value behavior in runCommand() JSDoc
- Detect "terminal prompts disabled" in push error handler and
  point users to 'nemar auth setup-ssh'
Prevent push from hanging on public datasets
@neuromechanist
neuromechanist merged commit 01f87f4 into main Mar 8, 2026
15 checks passed

This branch was previously deployed

1 inactive deployment
npm — 9999fa73 Deployed Mar 8, 2026 by neuromechanist via publish #435
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.

1 participant