Skip to content

Add webhook list command#1153

Merged
joshmgross merged 3 commits into
mainfrom
list-webhooks
Dec 1, 2025
Merged

Add webhook list command#1153
joshmgross merged 3 commits into
mainfrom
list-webhooks

Conversation

@joshmgross

Copy link
Copy Markdown
Contributor

This pulls in the latest version of planetscale-go from planetscale/planetscale-go#276 and implements the webhook list command. Create, delete, update, and test will be implemented in follow-up PRs.

pscale webhook list planetscale -f json
[
  {
    "id": "4h7gbsu2wmsp",
    "url": "<redacted>",
    "secret": "<redacted>",
    "enabled": true,
    "last_sent_result": "200",
    "last_sent_success": true,
    "last_sent_at": "2025-11-26T19:40:55.59Z",
    "created_at": "2023-10-17T17:42:58.012Z",
    "updated_at": "2025-11-26T19:40:55.592Z",
    "events": [
      "deploy_request.closed",
      "deploy_request.errored",
      "deploy_request.in_progress",
      "deploy_request.opened",
      "deploy_request.queued",
      "deploy_request.reverted",
      "deploy_request.schema_applied"
    ]
  },
  {
    "id": "uj6gtktlj7m2",
    "url": "<redacted>",
    "secret": "<redacted>",
    "enabled": true,
    "last_sent_result": "200",
    "last_sent_success": true,
    "last_sent_at": "2025-11-19T22:18:23.358Z",
    "created_at": "2025-08-07T04:43:30.814Z",
    "updated_at": "2025-11-19T22:18:23.359Z",
    "events": [
      "branch.schema_recommendation"
    ]
  }
]

(<redacted> was added by me, not part of the actual response).

@joshmgross joshmgross requested a review from a team as a code owner November 26, 2025 20:00
@joshmgross joshmgross merged commit 58dc759 into main Dec 1, 2025
2 checks passed
@joshmgross joshmgross deleted the list-webhooks branch December 1, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants