Skip to content

Commit aa5e99a

Browse files
Fix error message + add readme
1 parent 1158158 commit aa5e99a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# gh-webhook
2+
3+
An extension for the GitHub CLI to chatter with Webhooks.
4+
5+
To install: `gh extension install cli/gh-webhook`

webhook/create_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func createHook(o *hookOptions) (string, func() error, error) {
6666
path := fmt.Sprintf("repos/%s/hooks/%d", o.Repo, res.ID)
6767
err = apiClient.Patch(path, strings.NewReader(`{"active": true}`), nil)
6868
if err != nil {
69-
return fmt.Errorf("error creating webhook: %w", err)
69+
return fmt.Errorf("error activating webhook: %w", err)
7070
}
7171
return nil
7272
}, nil

0 commit comments

Comments
 (0)