Lodol Docs

GitLab

API actions for the GitLab integration.

GitLab

Manage GitLab projects and issues with a personal access token.


Close issue

Close an existing GitLab issue.

Parameters

ParameterTypeRequiredDescription
project_idnumberYesGitLab project ID
issue_iidnumberYesIssue internal ID (IID) to close

Response

{
  "id": 456,
  "iid": 1,
  "state": "closed"
}

Comment on issue

Add a comment (note) to a GitLab issue.

Parameters

ParameterTypeRequiredDescription
project_idnumberYesGitLab project ID
issue_iidnumberYesIssue internal ID (IID)
bodystringYesComment body

Response

{
  "body": "This is a comment.",
  "id": 101
}

Create issue

Create a new issue in a GitLab project.

Parameters

ParameterTypeRequiredDescription
project_idnumberYesGitLab project ID
titlestringYesIssue title
descriptionstringNoIssue description
labelsarrayNoLabels to assign to the issue

Response

{
  "id": 789,
  "iid": 2,
  "title": "New feature request",
  "web_url": "https://gitlab.com/user/project/-/issues/2"
}

List issues

List issues for a specific GitLab project.

Parameters

ParameterTypeRequiredDescription
project_idnumberYesGitLab project ID
statestringNoFilter by state (opened, closed, all)
labelsarrayNoFilter by labels
per_pagenumberNoNumber of results per page (max 100)

Response

[
  {
    "id": 456,
    "iid": 1,
    "state": "opened",
    "title": "Bug report",
    "web_url": "https://gitlab.com/user/project/-/issues/1"
  }
]

List projects

List GitLab projects accessible to the authenticated user.

Parameters

ParameterTypeRequiredDescription
membershipbooleanNoFilter by membership (true to only show projects user is a member of)
searchstringNoSearch query to filter projects by name
per_pagenumberNoNumber of results per page (max 100)

Response

[
  {
    "id": 123,
    "name": "my-project",
    "path_with_namespace": "user/my-project",
    "visibility": "private",
    "web_url": "https://gitlab.com/user/my-project"
  }
]

On this page