We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c680563 commit d4124d1Copy full SHA for d4124d1
1 file changed
cmd/spr/main.go
@@ -249,6 +249,25 @@ VERSION: fork of {{.Version}}
249
},
250
251
252
+ {
253
+ Name: "amend",
254
+ Aliases: []string{"a"},
255
+ Usage: "Amend a commit in the stack",
256
+ Flags: []cli.Flag{
257
+ &cli.BoolFlag{
258
+ Name: "update",
259
+ Aliases: []string{"u"},
260
+ Usage: "Run spr update after amend",
261
+ },
262
263
+ Action: func(c *cli.Context) error {
264
+ stackedpr.AmendCommit(ctx)
265
+ if c.Bool("update") {
266
+ stackedpr.UpdatePullRequests(ctx, nil, nil)
267
+ }
268
+ return nil
269
270
271
{
272
Name: "edit",
273
Aliases: []string{"e"},
0 commit comments