@broadcom/endevor-bridge-for-git-rest-api
Version:
Endevor Bridge for Git Rest client
11 lines (10 loc) • 362 B
JavaScript
import { MappingAction } from "../action/MappingAction";
import { RequestMethod } from "../../AbstractRequest";
export class CreateWebhook extends MappingAction {
constructor(payload) {
super(payload.context, payload.repository);
this.customPath = "/webhook";
this.payload = payload;
this.method = RequestMethod.POST;
}
}