Dispare o pipeline GitLab via API

Orquestrador FastAPI Hard 35 pts
Contexto

O orquestrador FastAPI é responsável por disparar pipelines GitLab com as variáveis extraídas do ticket Frappe. O trigger token é diferente do Personal Access Token e deve ser criado em Settings > CI/CD > Pipeline trigger tokens.

Implemente a função trigger_gitlab_pipeline(project_id: int, token: str, variables: dict) -> int que dispara um pipeline GitLab e retorna o pipeline_id.

Use httpx.post para chamar:

POST /api/v4/projects/{project_id}/trigger/pipeline

Com body: token=<token>&ref=main&variables[VAR]=value