Google Cloud

The Google Cloud Platform

Go to site

Integrate the Google Cloud API with the GitHub API

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

Create Repo Issue

Creates an issue in a repository.

 
Try it
Get Repo

Gets a repository's details.

 
Try it
Search Issues or Pull Requests

Searches for issues or pull requests by state and keyword.

 
Try it
Create Fork

Creates a fork given a repository for the authenticated user.

 
Try it
Create Gist

Creates a new gist with one or more files.

 
Try it

Connect Google Cloud

// Required workaround to get the @google-cloud/storage package
// working correctly on Pipedream
require("@dylburger/umask")()

const { Storage } = require('@google-cloud/storage')

const key = JSON.parse(auths.google_cloud.key_json)
 
// Creates a client from a Google service account key.
// See https://cloud.google.com/nodejs/docs/reference/storage/1.6.x/global#ClientConfig
const storage = new Storage({
  projectId: key.project_id,
  credentials: {
    client_email: key.client_email,
    private_key: key.private_key,
  }
})

// Uncomment this section and rename for your bucket before running this code
// const bucketName = 'pipedream-test-bucket';

await storage.createBucket(bucketName)
console.log(`Bucket ${bucketName} created.`)

Connect GitHub

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