Use GitLab (Developer App) to connect to your self-hosted GitLab instance.
Go to siteThe GitLab (Developer App) API on Pipedream allows you to automate your development workflow by connecting GitLab with other services and creating custom, serverless workflows. With this API, you can trigger actions on events in GitLab, like pushes, merge requests, or issues, and perform operations such as creating new commits, managing issues, or deploying code. It simplifies your DevOps cycle, offers extensive automation capabilities, and integrates with numerous third-party tools, all from within Pipedream's seamless integration platform.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gitlab_developer_app: {
type: "app",
app: "gitlab_developer_app",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.gitlab_developer_app.$auth.base_api_url}/api/v4/user`,
headers: {
Authorization: `Bearer ${this.gitlab_developer_app.$auth.oauth_access_token}`,
},
})
},
})
Automated Code Review Assignments: When a new merge request is created in GitLab, the workflow can automatically assign a reviewer from a predefined list or based on file paths affected in the request. Notify the reviewer through Slack to streamline the process.
Issue Management and Tracking: On the creation of a new issue in GitLab, create a corresponding task in Trello or Asana. Sync comments and status updates between GitLab and the project management tool to keep everyone on the same page without manual updates.
Continuous Deployment Pipeline: Trigger a workflow when a push to the master branch in a GitLab repository occurs. Build the code using a CI tool like CircleCI, then deploy to a server or platform like AWS or Heroku. Finally, send a notification of the deployment's success or failure through email or a messaging app like Discord.
Emit new event when a new audit event is created
Emit new event when a new commit is pushed to a branch
Emit new event when a commit receives a comment
Emit new event when an issue is created in a project
Create a new branch in the repository. See the documentation
Gets a single issue from repository. See the documentation
Get a single project repository branch. See the documentation
GitLab (Developer App) uses OAuth authentication. When you connect your GitLab (Developer App) account, Pipedream will open a popup window where you can sign into GitLab (Developer App) 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 (Developer App) API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://{{custom_fields.base_api_url}}/oauth/authorize
?
client_id={{custom_fields.application_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{custom_fields.space_separated_scopes}}
POST
https://{{custom_fields.base_api_url}}/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.application_id}}
&
client_secret={{custom_fields.secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://{{custom_fields.base_api_url}}/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.application_id}}
&
client_secret={{custom_fields.secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}