File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1183,6 +1183,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
11831183 "PUT /repos/{owner}/{repo}/environments/{environment_name}" ,
11841184 ] ,
11851185 createOrUpdateFileContents : [ "PUT /repos/{owner}/{repo}/contents/{path}" ] ,
1186+ createPagesDeployment : [ "POST /repos/{owner}/{repo}/pages/deployment" ] ,
11861187 createPagesSite : [ "POST /repos/{owner}/{repo}/pages" ] ,
11871188 createRelease : [ "POST /repos/{owner}/{repo}/releases" ] ,
11881189 createTagProtection : [ "POST /repos/{owner}/{repo}/tags/protection" ] ,
Original file line number Diff line number Diff line change @@ -8202,6 +8202,20 @@ export type RestEndpointMethods = {
82028202 defaults: RequestInterface["defaults"];
82038203 endpoint: EndpointInterface<{ url: string }>;
82048204 };
8205+ /**
8206+ * Create a GitHub Pages deployment for a repository.
8207+ *
8208+ * Users must have write permissions. GitHub Apps must have the `pages:write` permission to use this endpoint.
8209+ */
8210+ createPagesDeployment: {
8211+ (
8212+ params?: RestEndpointMethodTypes["repos"]["createPagesDeployment"]["parameters"]
8213+ ): Promise<
8214+ RestEndpointMethodTypes["repos"]["createPagesDeployment"]["response"]
8215+ >;
8216+ defaults: RequestInterface["defaults"];
8217+ endpoint: EndpointInterface<{ url: string }>;
8218+ };
82058219 /**
82068220 * Configures a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages)."
82078221 */
Original file line number Diff line number Diff line change @@ -4520,6 +4520,14 @@ export type RestEndpointMethodTypes = {
45204520 > ;
45214521 response : Endpoints [ "PUT /repos/{owner}/{repo}/contents/{path}" ] [ "response" ] ;
45224522 } ;
4523+ createPagesDeployment : {
4524+ parameters : RequestParameters &
4525+ Omit <
4526+ Endpoints [ "POST /repos/{owner}/{repo}/pages/deployment" ] [ "parameters" ] ,
4527+ "baseUrl" | "headers" | "mediaType"
4528+ > ;
4529+ response : Endpoints [ "POST /repos/{owner}/{repo}/pages/deployment" ] [ "response" ] ;
4530+ } ;
45234531 createPagesSite : {
45244532 parameters : RequestParameters &
45254533 Omit <
You can’t perform that action at this time.
0 commit comments