Skip to content

Commit 2fcfa64

Browse files
committed
📝 Add docs on server Event
1 parent 3bff547 commit 2fcfa64

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/server/webhooks/events/event.ts

+15
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@ import type { PrEvent } from "./pr/event.js"
22
import type { ProjectEvent } from "./project/event.js"
33
import 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+
*/
519
export type Event = PrEvent | ProjectEvent | RepoEvent
20+
621
export type EventKey =
722
| PrEvent["eventKey"]
823
| ProjectEvent["eventKey"]

0 commit comments

Comments
 (0)