Go

Anything you can do in Go, you can do in a Pipedream Workflow. You can use any of Go packages available with a simple import.

Integrate the Go API with the GitHub API

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

Run Go Code with Go API on New Branch (Instant) from GitHub API
GitHub + Go
 
Try it
Run Go Code with Go API on New Card in Column (Instant) from GitHub API
GitHub + Go
 
Try it
Run Go Code with Go API on New Collaborator (Instant) from GitHub API
GitHub + Go
 
Try it
Run Go Code with Go API on New Commit Comment (Instant) from GitHub API
GitHub + Go
 
Try it
Run Go Code with Go API on New Commit from GitHub API
GitHub + Go
 
Try it
New Branch from the GitHub API

Emit new event when a branch is created See the documentation

 
Try it
New Card in Column (Classic Projects) from the GitHub API

Emit new event when a (classic) project card is created or moved to a specific column. For Projects V2 use New Issue with Status trigger. More information here

 
Try it
New Collaborator from the GitHub API

Emit new event when a collaborator is added See the documentation

 
Try it
New Commit from the GitHub API

Emit new event when commits are pushed to a branch See the documentation

 
Try it
New Commit Comment from the GitHub API

Emit new event when a commit comment is created See the documentation

 
Try it
Run Go Code with the Go API

Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.

 
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 Gist with the GitHub API

Allows you to add a new gist with one or more files. See docs here

 
Try it

Connect Go

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
	"fmt"

	pd "github.com/PipedreamHQ/pipedream-go"
)

func main() {
	// Access previous step data using pd.Steps
	fmt.Println(pd.Steps)

	// Export data using pd.Export
	data := make(map[string]interface{})
	data["name"] = "Luke"
	pd.Export("data", data)
}

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`,
      },
    })
  },
})