Skip to content

feat: add commit authorship and gh CLI verification - #48

Merged
neuromechanist merged 2 commits into
devfrom
feature/commit-authorship-gh-verification
Jan 21, 2026
Merged

neuromechanist merged 2 commits into
devfrom
feature/commit-authorship-gh-verification

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • Add commit authorship using NEMAR user identity (username/email) for git commits
  • Add gh CLI authentication verification before upload workflows
  • Warn if gh CLI user differs from NEMAR linked GitHub account
  • Block upload if gh CLI not authenticated at all

Changes

  • src/lib/datalad.ts: Add verifyGitHubAuth() function, update saveDataset() to accept author info
  • src/commands/dataset.ts: Add gh CLI verification step, pass author to saveDataset
  • src/commands/sandbox.ts: Add gh CLI verification step, pass author to saveDataset

Testing

  • Build passes
  • Lint passes
  • Tested on mcm (yahya/neuromechanist account)
  • Test on mba (cool-vibers account) - machine offline

Related Issues

Closes #42
Closes #44
Part of #41

- Use NEMAR user identity (username/email) for git commit authorship
- Add verifyGitHubAuth() to check gh CLI is authenticated as expected user
- Warn if gh CLI user differs from NEMAR linked GitHub account
- Block upload if gh CLI not authenticated at all

Closes #42, closes #44
@neuromechanist
neuromechanist merged commit b474af7 into dev Jan 21, 2026
@neuromechanist
neuromechanist deleted the feature/commit-authorship-gh-verification branch January 21, 2026 00:52
@neuromechanist neuromechanist mentioned this pull request Sep 29, 2026
4 of 16 tasks

This branch was previously deployed

1 inactive deployment
npm — a888c696 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.

Verify gh CLI authentication before upload Use --author flag for commits with NEMAR user email

1 participant