Skip to content

Project bootstrap

Provisioning integrations require idempotency. Standard POST /projects requests create duplicates upon retry. examples/project_bootstrap.php queries existing projects for a provided key prior to creation.

Flow

  1. List organization projects.
  2. Match the specified project key.
  3. Create the project if absent.
  4. List project boards.
  5. Reuse an existing security-review board, or create one with a WIP limit.
  6. Output IDs for the provisioning system.

This implementation ensures convergence for endpoints lacking idempotency keys.

PROJECT_KEY=PLAT PROJECT_NAME="Platform Engineering" php examples/project_bootstrap.php