-
Notifications
You must be signed in to change notification settings - Fork 0
feat(submit): add --no-verify to skip git hooks on push #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -78,7 +78,7 @@ func Create(c *context.Context, opts CreateOpts) error { | |||||||||||||||
|
|
||||||||||||||||
| commitOpts := git.CommitOpts{} | ||||||||||||||||
| if opts.NoVerify { | ||||||||||||||||
| // Runner.Verify controls --no-verify; set it via the flag. | ||||||||||||||||
| // Runner.NoVerify controls --no-verify; set it via the flag. | ||||||||||||||||
| } | ||||||||||||||||
|
Comment on lines
80
to
82
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Connect When Proposed fix commitOpts := git.CommitOpts{}
if opts.NoVerify {
- // Runner.NoVerify controls --no-verify; set it via the flag.
+ c.Git.NoVerify = true
}📝 Committable suggestion
Suggested change
🧰 Tools🪛 golangci-lint (2.12.2)[error] 80-80: SA9003: empty branch (staticcheck) 🤖 Prompt for AI Agents |
||||||||||||||||
| if err := c.Git.Commit(opts.Message, commitOpts); err != nil { | ||||||||||||||||
| return err | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: amustafa/stackr
Length of output: 31357
🏁 Script executed:
Repository: amustafa/stackr
Length of output: 50372
🏁 Script executed:
Repository: amustafa/stackr
Length of output: 25261
🏁 Script executed:
Repository: amustafa/stackr
Length of output: 33647
Scope
submit --no-verifytoPushPinned.Preflightcan commit remote changes and restack branches before the push.ctx.Git.NoVerifyadds--no-verifyto those commits and rebases, although the submit flag documents onlygit push.Scope the override to
PushPinned, or document and test that it skips all Git hooks.🤖 Prompt for AI Agents