GitLab Pipeline Trigger API

A simple API to trigger and manage GitLab pipelines.

Usage

Trigger Pipeline

Method: POST

Path: /:projectId/:branch/trigger

Headers: SECRET: Secret found in 1password in Web Trigger Secret.

Triggers a pipeline for the specified project and branch, canceling any existing pipelines for that branch. The branch name must be URI encoded.

Note: The branch name in the URL path must be URI encoded. For example, 'feature/new-branch' should be encoded as 'feature%2Fnew-branch'.



IndexNow

Method: POST

Path: /indexnow

Headers: None

Body: It shall contain the following body based on the Sanity Page Projection Schema

				
					const BasePageProjectionSchema = object({
						_id: string(),
						language: string(),
						slug: string().nullable(),
					})

					const PageProjectionSchema = BasePageProjectionSchema.extend({
						parent: BasePageProjectionSchema.nullable(),
					})
				
			

Submits a URL to IndexNow.