Gitlab

Project planning and source code management

Integrate the Gitlab API with the GitHub API

Setup the Gitlab API trigger to run a workflow which integrates with the GitHub API. Pipedream's integration platform allows you to integrate Gitlab and GitHub remarkably fast. Free for developers.

Create Branch with GitHub API on New Commit (Instant) from Gitlab API
Gitlab + GitHub
 
Try it
Create Issue Comment with GitHub API on New Commit (Instant) from Gitlab API
Gitlab + GitHub
 
Try it
Create Issue with GitHub API on New Commit (Instant) from Gitlab API
Gitlab + GitHub
 
Try it
Create or update file contents with GitHub API on New Commit (Instant) from Gitlab API
Gitlab + GitHub
 
Try it
Create Repository with GitHub API on New Commit (Instant) from Gitlab API
Gitlab + GitHub
 
Try it
New Commit (Instant) from the Gitlab API

Emit new event when a new commit is pushed to a branch

 
Try it
New Branch (Instant) from the Gitlab API

Emit new event when a new branch is created

 
Try it
New Project from the Gitlab API

Emit new event when a project (i.e. repository) is created

 
Try it
New Branch (Instant) from the GitHub API

Emit new events when a new branch is created

 
Try it
New Audit Event (Instant) from the Gitlab API

Emit new event when a new audit event is created

 
Try it
Create Issue with the GitHub API

Create a new issue in a Gihub repo. See docs here

 
Try it
Search Issues and Pull Requests with the GitHub API

Find issues and pull requests by state and keyword. See docs here

 
Try it
Create Branch with the GitHub API

Create a new branch in a Github repo. See docs here

 
Try it
Create Branch with the Gitlab API

Create a new branch in the repository. See docs

 
Try it
Create Issue Comment with the GitHub API

Create a new comment in a issue. See docs here

 
Try it

Overview of Gitlab

Gitlab API allows developers to access the functionality of Gitlab. With the
Gitlab API, developers can integrate Gitlab with other applications, create
custom applications, or automate tasks.

Some examples of what you can build using the Gitlab API include:

  • Automate tasks such as creating and managing repositories
  • Integrate Gitlab with other applications such as your chat application
  • Create custom applications on top of Gitlab

Connect Gitlab

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    gitlab: {
      type: "app",
      app: "gitlab",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://gitlab.com/api/v4/user`,
      headers: {
        Authorization: `Bearer ${this.gitlab.$auth.oauth_access_token}`,
      },
    })
  },
})

Connect GitHub

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    github: {
      type: "app",
      app: "github",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.github.com/user`,
      headers: {
        Authorization: `Bearer ${this.github.$auth.oauth_access_token}`,
        "X-GitHub-Api-Version": `2022-11-28`,
      },
    })
  },
})