Gitlab

Project planning and source code management

Go to site
Explore
/
Apps
/
Gitlab

Gitlab API Integrations

Build and run workflows using the Gitlab API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://gitlab.com/api/v4/user`,
  headers: {
    Authorization: `Bearer ${auths.gitlab.oauth_access_token}`,
  },
})
Create Branch

Create a new branch in the repository.

 
Try it
Create issue

Creates a new issue

 
Try it
Delete Branch

Deletes a branch from repository

 
Try it
Delete Merged Branches

Will delete all branches that are merged into the project’s default branch. Protected branches are not deleted by this operation.

 
Try it
Edit Issue

Updates an existing project issue.

 
Try it

Authentication

Gitlab uses OAuth authentication. When you connect your Gitlab account, Pipedream will open a popup window where you can sign into Gitlab and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Gitlab API.

Pipedream requests the following authorization scopes when you connect your account:

apiread_userread_repositorywrite_repositoryread_registrysudoopenidprofileemail
OAuth Request Configurations:
  1. authorization
    GEThttps://gitlab.com/oauth/authorize?client_id={{oauth.client_id}}&state={{oauth.state}}&redirect_uri={{oauth.redirect_uri}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://gitlab.com/oauth/token?client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&code={{oauth.code}}&grant_type=authorization_code&redirect_uri={{oauth.redirect_uri}}content-type: application/x-www-form-urlencodedaccept: application/json
  3. refreshToken
    POSThttps://gitlab.com/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}