Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

535 B
Raw Blame
function shellQuote(value: string): string {
  return `'${value.replaceAll("'", `'"'"'`)}'`;
}

export function gitlabWebhookCommand(payloadUrl: string, secret: string): string {
  return [
    'glab api projects/:id/hooks',
    '--method POST',
    `--raw-field url=${shellQuote(payloadUrl)}`,
    `--raw-field token=${shellQuote(secret)}`,
    '--field merge_requests_events=true',
    '--field pipeline_events=true',
    '--field push_events=true',
    '--field enable_ssl_verification=true',
    '--silent',
  ].join(' \\\n  ');
}