File tree 1 file changed +15
-0
lines changed
src/server/webhooks/events
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"
2
2
import type { ProjectEvent } from "./project/event.js"
3
3
import type { RepoEvent } from "./repo/event.js"
4
4
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
+ */
5
19
export type Event = PrEvent | ProjectEvent | RepoEvent
20
+
6
21
export type EventKey =
7
22
| PrEvent [ "eventKey" ]
8
23
| ProjectEvent [ "eventKey" ]
You can’t perform that action at this time.
0 commit comments