diff --git a/README.md b/README.md new file mode 100644 index 0000000..c672f7d --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# gh-webhook + +An extension for the GitHub CLI to chatter with Webhooks. + +To install: `gh extension install cli/gh-webhook` diff --git a/webhook/create_webhook.go b/webhook/create_webhook.go index 708eb27..702aaa5 100644 --- a/webhook/create_webhook.go +++ b/webhook/create_webhook.go @@ -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