File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/server/webhooks/events Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,22 @@ import type { PrEvent } from "./pr/event.js"
22import type { ProjectEvent } from "./project/event.js"
33import type { RepoEvent } from "./repo/event.js"
44
5+ /**
6+ * When you have a webhook with an event, Bitbucket Data Center sends the event
7+ * request to the server URL for the webhook whenever that event occurs.
8+ *
9+ * For Bitbucket to send event payload requests for a webhook with HTTPS
10+ * endpoints, make sure your URL has a valid SSL certificate that a public
11+ * certificate authority has signed.
12+ *
13+ * The following payloads contain some of the common entity types: `User`,
14+ * `Repository`, `Comment`, and `Pull Request` – which have consistent
15+ * representations in all the payloads where they appear. For example, the actor
16+ * property in the `repo:refs_changed` payload is a representation of the
17+ * event's user.
18+ */
519export type Event = PrEvent | ProjectEvent | RepoEvent
20+
621export type EventKey =
722 | PrEvent [ "eventKey" ]
823 | ProjectEvent [ "eventKey" ]
You can’t perform that action at this time.
0 commit comments