Skip to content

Commit

Permalink
Fix error message + add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marwan-at-work committed Oct 11, 2022
1 parent 1158158 commit aa5e99a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# gh-webhook

An extension for the GitHub CLI to chatter with Webhooks.

To install: `gh extension install cli/gh-webhook`
2 changes: 1 addition & 1 deletion webhook/create_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func createHook(o *hookOptions) (string, func() error, error) {
path := fmt.Sprintf("repos/%s/hooks/%d", o.Repo, res.ID)
err = apiClient.Patch(path, strings.NewReader(`{"active": true}`), nil)
if err != nil {
return fmt.Errorf("error creating webhook: %w", err)
return fmt.Errorf("error activating webhook: %w", err)
}
return nil
}, nil
Expand Down

0 comments on commit aa5e99a

Please sign in to comment.