feat: add repository webhook management #798
Reference in New Issue
Block a user
Delete Branch "rossigee/tea:feature/webhook-management-clean"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR adds support for organization-level and global webhooks in the tea CLI tool.
Changes Made
Organization Webhooks
--orgflag to webhook commands to operate on organization-level webhooksGlobal Webhooks
--globalflag with placeholder implementationTechnical Details
Usage Examples
Testing
Closes: webhook management feature request
@@ -0,0 +29,4 @@&webhooks.CmdWebhooksDelete,&webhooks.CmdWebhooksUpdate,},Flags: append([]cli.Flag{Webhooks also support organization-level and global-level configurations, but it seems this hasn’t been implemented here yet.
Good point. I've addressed the organisation-level, but if I understand it correctly the global level hooks still need implementing in the SDK.
@@ -0,0 +51,4 @@}if !cmd.Bool("confirm") {fmt.Printf("Are you sure you want to delete webhook %d (%s)? [y/N] ", hook.ID, hook.Config["url"])Use bubbletea as TUI framework.