Skip to content

GitLab ​

Monitors review requests, failed pipelines, and GitLab todos through the REST API v4. GitLab.com and HTTPS self-managed instances are supported.

Pollen Types ​

TypeDescription
gitlab_mr_reviewAn open merge request requests your review
gitlab_ci_failureA watched project's pipeline failed
gitlab_mentionA matching todo indicates an assignment or mention

Setup ​

Create a personal access token with sufficient read-API access and export it:

bash
export GITLAB_TOKEN="glpat-..."
/hive hire gitlab

Configuration ​

json
{
  "gitlab": {
    "enabled": true,
    "token_env": "GITLAB_TOKEN",
    "gitlab_url": "https://gitlab.com",
    "username": "your-login",
    "watch_projects": ["group/project"],
    "watch_reviews": true,
    "watch_pipelines": true,
    "watch_todos": true,
    "max_items": 100,
    "max_pages": 3,
    "projects_per_poll": 3,
    "overlap_minutes": 10
  }
}
FieldDefaultDescription
token_envGITLAB_TOKENToken environment variable
gitlab_urlhttps://gitlab.comHTTPS instance origin only; paths and query strings are rejected
username""GitLab username required for review filtering
watch_projects[]Unique namespace/project paths; needed for pipeline polling
watch_reviews / watch_pipelines / watch_todostrueEnable each polling component
max_items100API page size, from 1 to 100
max_pages3Page cap, from 1 to 5
projects_per_poll3Projects rotated through for pipelines, from 1 to 10
overlap_minutes10Pipeline time overlap, from 0 to 1,440 minutes

Each component retains its own progress, so one failing endpoint does not make another endpoint's results appear fully committed.

Released under the Apache 2.0 + Commons Clause License.