Skip to content

Commit 7b6d1b9

Browse files
Fix samples
1 parent c030edd commit 7b6d1b9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/git-commit.gpt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tools: gitstatus
1+
tools: gitstatus, sys.abort
22

33
Create well formed git commit message based of off the currently stated file
44
contents. The message should convey why something was changed and not what
@@ -9,6 +9,8 @@ the go.sum file.
99

1010
Do not use markdown format for the output.
1111

12+
If there are no changes abort.
13+
1214
---
1315
name: gitstatus
1416

pkg/monitor/display.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (c *Console) Start(ctx context.Context, prg *types.Program, env []string, i
4141
mon.dump.Program = prg
4242
mon.dump.Input = input
4343

44-
log.Fields("runID", mon.dump.ID, "input", input).Debugf("Run started")
44+
log.Fields("runID", mon.dump.ID, "input", input, "program", prg).Debugf("Run started")
4545
return mon, nil
4646
}
4747

0 commit comments

Comments
 (0)