View as Markdown
GitHub icon

GitHub ACTION

Create Repository

Creates a new repository for the authenticated user. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's GitHub account once, then configure and run Create Repository from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "github-create-repository",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    github: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    teamId: 10,
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Repository inputs
Property Type Description
name Name string
The name of the repository.
Required
teamId Team Id integer
The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
Optional Dynamic
description Description string
A short description of the repository.
Optional
homepage Homepage string
A URL with more information about the repository.
Optional
private Private boolean
Whether the repository is private.
Optional
hasIssues Has Issues boolean
Whether issues are enabled.
Optional
hasProjects Has Projects boolean
Whether projects are enabled.
Optional
hasWiki Has Wiki boolean
Whether the wiki is enabled.
Optional
hasDiscussions Has Discussions boolean
Whether discussions are enabled.
Optional
autoInit Auto Init boolean
Whether the repository is initialized with a minimal README.
Optional
hasDownloads Has Downloads boolean
Whether downloads are enabled.
Optional
isTemplate Is Template boolean
Whether this repository acts as a template that can be used to generate new repositories.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
github-create-repository
Version
0.0.23
App
GitHub
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes