You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Store the link between a feature flag and a GitLab issue or MR.
Endpoints live under /organisations/:org_pk/gitlab/ — same pattern as the GitHub integration.
Important
Unlike GitHub, where users pre-select repositories during the App installation flow, GitLab tokens grant access to all projects within their scope. A project selection UI would expose someone else's token scope to any Flagsmith user on the integrations page. The GitLab integration exposes all accessible projects by design.
Note
#7120 and #7121 contain reference code. A few things to consider:
GitLabResource in types.py represents an issue or MR — name is vague.
Context: #7000
After connecting their GitLab instance (#7159), users can link GitLab issues and merge requests to their feature flags.
Scope
GET /api/v4/projects?membership=true. The token type determines which projects are returned.GET /api/v4/projects/:id/issuesand MRs viaGET /api/v4/projects/:id/merge_requests. Filters: search text, state, author, assignee./organisations/:org_pk/gitlab/— same pattern as the GitHub integration.Important
Unlike GitHub, where users pre-select repositories during the App installation flow, GitLab tokens grant access to all projects within their scope. A project selection UI would expose someone else's token scope to any Flagsmith user on the integrations page. The GitLab integration exposes all accessible projects by design.
Note
#7120 and #7121 contain reference code. A few things to consider:
GitLabResourceintypes.pyrepresents an issue or MR — name is vague.post_comment_to_gitlab→ GitLab integration: post comments on linked issues and MRs #7162create_flagsmith_flag_label,label_gitlab_resource→ GitLab integration: label linked issues and MRs #7163Acceptance criteria