Repository navigation
Prevent push from hanging on public datasets - #259
Merged
Merged
Conversation
Adopt Bun-style colors, fix SSH->HTTPS help text
- 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
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR259Version: 🤖 Updated on each push. |
- 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
Contributor
Author
PR Review SummaryRan 4 review agents in parallel: code-reviewer, silent-failure-hunter, code-simplifier, comment-analyzer. Critical Issues (1 found, fixed)
Important Issues (1 found, fixed)
Suggestions (3 found, 2 addressed)
Not Addressed
Strengths Noted
|
- Document timeout return-value behavior in runCommand() JSDoc - Detect "terminal prompts disabled" in push error handler and point users to 'nemar auth setup-ssh'
This branch was previously deployed
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
GIT_TERMINAL_PROMPT=0torunCommand()to prevent git from blocking on credential prompts (root cause of Modified a dataset #257 hang)timeoutparameter torunCommand()as safety netpushcommand: detect public datasets and block direct push to main with actionable guidanceupdateorpush --pr)checkPrerequisitesForCommand("push")to push commandupdateandreleasecommands with centralizedcheckPrerequisitesForCommand()calls"update"and"release"toNemarCommandtypeCloses #257
Test plan
bun run buildcompiles successfullybun run typecheckpassesnemar dataset pushin a public dataset clone shows error immediately with suggestionsnemar dataset pushin a private dataset works as beforenemar dataset push --pron a feature branch of a public dataset works