GitLab
GitLab is a web-based DevOps lifecycle tool that provides a Git repository manager, CI/CD pipelines, issue tracking, and more in a single application.
Categories: Developer Tools
Type: gitlab/v1
Connections
Version: 1
OAuth2 Authorization Code
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| clientId | Client Id | STRING | true | |
| clientSecret | Client Secret | STRING | true |
Connection Setup
- Login to your GitLab account.
- Click on your profile icon in the top right corner and select Edit profile.
- On the left sidebar, select Applications.
- Click on Add new application.
- Fill in the required fields:
- Name: Enter a name for your application (e.g.,
Test App). - Redirect URI: Specify the URI where users will be redirected after authorization (e.g.,
http://127.0.0.1:5173/callback).
- Name: Enter a name for your application (e.g.,
- Select OAuth 2 Scopes. For the ByteChef connector, enable:
api. - Click on Save application.
- Copy the Application ID as Client ID and Secret as Client Secret and use it in ByteChef.
Actions
Create Comment on Issue
Name: createCommentOnIssue
Adds a comment to the specified issue.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| projectId | Project ID | STRING | true | |
| issueId | Issue ID | INTEGER Depends OnprojectId | ID of the issue to comment on. | true |
| body | Comment | STRING | The comment to add to the issue. | true |
Example JSON Structure
{
"label" : "Create Comment on Issue",
"name" : "createCommentOnIssue",
"parameters" : {
"projectId" : "",
"issueId" : 1,
"body" : ""
},
"type" : "gitlab/v1/createCommentOnIssue"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| id | INTEGER | The ID of the comment. |
| body | STRING | The body of the comment. |
Output Example
{
"id" : 1,
"body" : ""
}Find Project ID and Issue ID
To find the Project ID, click here.
To find the Issue ID, click here.
Create Issue
Name: createIssue
Creates a new project issue.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| projectId | Project ID | STRING | ID of the project where new issue will be created. | true |
| title | Title | STRING | The title of an issue. | true |
| description | Description | STRING | The description of an issue. | false |
Example JSON Structure
{
"label" : "Create Issue",
"name" : "createIssue",
"parameters" : {
"projectId" : "",
"title" : "",
"description" : ""
},
"type" : "gitlab/v1/createIssue"
}Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| id | INTEGER | The ID of the issue. |
| iid | INTEGER | The internal ID of the issue. |
| project_id | INTEGER | The ID of the project. |
| title | STRING | The title of the issue. |
| description | STRING | The description of the issue. |
| web_url | STRING | The URL of the issue. |
Output Example
{
"id" : 1,
"iid" : 1,
"project_id" : 1,
"title" : "",
"description" : "",
"web_url" : ""
}Find Project ID
To find the Project ID, click here.
Triggers
New Issue
Name: newIssue
Triggers when a new issue is created.
Type: DYNAMIC_WEBHOOK
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| projectId | Project | STRING | true |
Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| description | STRING | The description of the issue. |
| id | INTEGER | The ID of the issue. |
| iid | INTEGER | The internal ID of the issue. |
| projectId | INTEGER | The ID of the project. |
| title | STRING | The title of the issue. |
JSON Example
{
"label" : "New Issue",
"name" : "newIssue",
"parameters" : {
"projectId" : ""
},
"type" : "gitlab/v1/newIssue"
}Find Project ID
To find the Project ID, click here.
What to do if your action is not listed here?
If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.
To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.
Additional Instructions
How to find the Project ID
The Project ID is a unique numeric value that can be found in the Gitlab UI or via the API.
- Method 1: Via API
Use the GET /projects endpoint to retrieve a list of all projects and their numeric IDs.
- Method 2: In the Gitlab UI
- On the top bar, select Search or go to and find your project.
- On the project overview page, in the upper-right corner, select Actions ( ).
- Select Copy project ID.
How to find the Issue ID
The Issue ID is a project-scoped identifier for an issue that can be found in the Gitlab UI or via the API.
- Method 1: Via API
Use the GET /projects/PROJECT_ID/issues endpoint. List issues within a project to retrieve their IDs.
- Method 2: In the Gitlab UI
- On the top bar, select Search or go to and find your project.
- On the left bar, click on Issues.
- Open the issue in your project.
- The Issue ID appears after the # symbol above the issue title.
How is this guide?
Last updated on