Skip to content

GitHub

GitHub is a web-based platform for version control and collaboration using Git.

Categories: developer-tools

Type: github/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeControl TypeDescriptionRequired
clientIdClient idSTRINGTEXTtrue
clientSecretClient secretSTRINGTEXTtrue

Actions

Add Assignee to Issue

Name: addAssigneesToIssue

Adds an assignees to the specified issue.

Properties

NameLabelTypeControl TypeDescriptionRequired
repositoryRepositorySTRINGSELECTtrue
issueIssueSTRING
Depends On repository
SELECTThe issue to add assignee to.true
assigneesAssigneesARRAY
Items [STRING]
MULTI_SELECTThe list of assignees to add to the issue.true

Output

Type: OBJECT

Properties

NameTypeControl Type
urlSTRINGTEXT
repository_urlSTRINGTEXT
idNUMBERNUMBER
numberINTEGERINTEGER
titleSTRINGTEXT
stateSTRINGTEXT
assigneesARRAY
Items [{STRING(login), STRING(id), STRING(html_url), STRING(type)}]
ARRAY_BUILDER
labelsARRAY
Items [{STRING(id), STRING(name), STRING(description)}]
ARRAY_BUILDER
bodySTRINGTEXT

JSON Example

{
"label" : "Add Assignee to Issue",
"name" : "addAssigneesToIssue",
"parameters" : {
"repository" : "",
"issue" : "",
"assignees" : [ "" ]
},
"type" : "github/v1/addAssigneesToIssue"
}

Add Labels to Issue

Name: addLabelsToIssue

Adds labels to the specified issue.

Properties

NameLabelTypeControl TypeDescriptionRequired
repositoryRepositorySTRINGSELECTtrue
issueIssueSTRING
Depends On repository
SELECTThe issue to add labels to.true
labelsLabelsARRAY
Items [STRING]
MULTI_SELECTThe list of labels to add to the issue.true

Output

Type: ARRAY

Properties

NameTypeControl Type
OBJECT
Properties {STRING(id), STRING(name), STRING(description)}
OBJECT_BUILDER

JSON Example

{
"label" : "Add Labels to Issue",
"name" : "addLabelsToIssue",
"parameters" : {
"repository" : "",
"issue" : "",
"labels" : [ "" ]
},
"type" : "github/v1/addLabelsToIssue"
}

Create Comment on Issue

Name: createCommentOnIssue

Adds a comment to the specified issue.

Properties

NameLabelTypeControl TypeDescriptionRequired
repositoryRepositorySTRINGSELECTtrue
issueIssueSTRING
Depends On repository
SELECTThe issue to comment on.true
bodyCommentSTRINGTEXTThe comment to add to the issue.true

Output

Type: OBJECT

Properties

NameTypeControl Type
urlSTRINGTEXT
repository_urlSTRINGTEXT
idNUMBERNUMBER
numberINTEGERINTEGER
titleSTRINGTEXT
stateSTRINGTEXT
assigneesARRAY
Items [{STRING(login), STRING(id), STRING(html_url), STRING(type)}]
ARRAY_BUILDER
labelsARRAY
Items [{STRING(id), STRING(name), STRING(description)}]
ARRAY_BUILDER
bodySTRINGTEXT

JSON Example

{
"label" : "Create Comment on Issue",
"name" : "createCommentOnIssue",
"parameters" : {
"repository" : "",
"issue" : "",
"body" : ""
},
"type" : "github/v1/createCommentOnIssue"
}

Create Issue

Name: createIssue

Create Issue in GitHub Repository

Properties

NameLabelTypeControl TypeDescriptionRequired
repositoryRepositorySTRINGSELECTRepository where new issue will be created.true
titleTitleSTRINGTEXTTitle of the issue.false
bodyDescriptionSTRINGTEXTThe description of the issue.false

Output

Type: OBJECT

Properties

NameTypeControl Type
urlSTRINGTEXT
repository_urlSTRINGTEXT
idNUMBERNUMBER
numberINTEGERINTEGER
titleSTRINGTEXT
stateSTRINGTEXT
assigneesARRAY
Items [{STRING(login), STRING(id), STRING(html_url), STRING(type)}]
ARRAY_BUILDER
labelsARRAY
Items [{STRING(id), STRING(name), STRING(description)}]
ARRAY_BUILDER
bodySTRINGTEXT

JSON Example

{
"label" : "Create Issue",
"name" : "createIssue",
"parameters" : {
"repository" : "",
"title" : "",
"body" : ""
},
"type" : "github/v1/createIssue"
}

Get Issue

Name: getIssue

Get information from a specific issue

Properties

NameLabelTypeControl TypeDescriptionRequired
repositoryRepositorySTRINGSELECTtrue
issueIssueSTRING
Depends On repository
SELECTThe issue you want to get details from.true

Output

Type: OBJECT

Properties

NameTypeControl Type
urlSTRINGTEXT
repository_urlSTRINGTEXT
idNUMBERNUMBER
numberINTEGERINTEGER
titleSTRINGTEXT
stateSTRINGTEXT
assigneesARRAY
Items [{STRING(login), STRING(id), STRING(html_url), STRING(type)}]
ARRAY_BUILDER
labelsARRAY
Items [{STRING(id), STRING(name), STRING(description)}]
ARRAY_BUILDER
bodySTRINGTEXT

JSON Example

{
"label" : "Get Issue",
"name" : "getIssue",
"parameters" : {
"repository" : "",
"issue" : ""
},
"type" : "github/v1/getIssue"
}

List Issues

Name: listIssues

Retrieve issues assigned to the authenticated user across all accessible repositories.

Properties

NameLabelTypeControl TypeDescriptionRequired
filterFilterSTRING
Options assigned, created, mentioned, subscribed, repos, all
SELECTSpecifies the types of issues to return.true
stateStateSTRING
Options open, closed, all
SELECTIndicates the state of the issues to return.true

Output

Type: ARRAY

Properties

NameTypeControl Type
OBJECT
Properties {STRING(url), STRING(repository_url), NUMBER(id), INTEGER(number), STRING(title), STRING(state), [{STRING(login), STRING(id), STRING(html_url), STRING(type)}](assignees), [{STRING(id), STRING(name), STRING(description)}](labels), STRING(body)}
OBJECT_BUILDER

JSON Example

{
"label" : "List Issues",
"name" : "listIssues",
"parameters" : {
"filter" : "",
"state" : ""
},
"type" : "github/v1/listIssues"
}

List Repository Issues

Name: listRepositoryIssues

Lists issues in a repository. Only open issues will be listed.

Properties

NameLabelTypeControl TypeDescriptionRequired
repositoryRepositorySTRINGSELECTThe name of the repositorytrue

Output

Type: ARRAY

Properties

NameTypeControl Type
OBJECT
Properties {STRING(url), STRING(repository_url), NUMBER(id), INTEGER(number), STRING(title), STRING(state), [{STRING(login), STRING(id), STRING(html_url), STRING(type)}](assignees), [{STRING(id), STRING(name), STRING(description)}](labels), STRING(body)}
OBJECT_BUILDER

JSON Example

{
"label" : "List Repository Issues",
"name" : "listRepositoryIssues",
"parameters" : {
"repository" : ""
},
"type" : "github/v1/listRepositoryIssues"
}

Star Repository

Name: starRepository

Stars a repository for the authenticated user.

Properties

NameLabelTypeControl TypeDescriptionRequired
ownerOwnerSTRINGTEXTThe account owner of the repository. The name is not case sensitive.true
repositoryRepositorySTRINGTEXTThe name of the repository including owner without the .git extension. The name is not case sensitive.true

JSON Example

{
"label" : "Star Repository",
"name" : "starRepository",
"parameters" : {
"owner" : "",
"repository" : ""
},
"type" : "github/v1/starRepository"
}

Triggers

New Issue

Name: newIssue

Triggers when a new issue is created.

Type: DYNAMIC_WEBHOOK

Properties

NameLabelTypeControl TypeDescriptionRequired
repositoryRepositorySTRINGSELECTtrue

Output

Type: OBJECT

Properties

NameTypeControl Type
issueOBJECT
Properties {STRING(url), STRING(repository_url), NUMBER(id), INTEGER(number), STRING(title), STRING(state), STRING(body)}
OBJECT_BUILDER
senderOBJECT
Properties {STRING(login), INTEGER(id)}
OBJECT_BUILDER
actionSTRINGTEXT
starred_atSTRINGTEXT
repositoryOBJECT
Properties {INTEGER(id), STRING(name), STRING(full_name), {STRING(login), INTEGER(id)}(owner), STRING(visibility), INTEGER(forks), INTEGER(open_issues), STRING(default_branch)}
OBJECT_BUILDER

JSON Example

{
"label" : "New Issue",
"name" : "newIssue",
"parameters" : {
"repository" : ""
},
"type" : "github/v1/newIssue"
}

New Pull Request

Name: newPullRequest

Triggers when a new pull request is created.

Type: DYNAMIC_WEBHOOK

Properties

NameLabelTypeControl TypeDescriptionRequired
repositoryRepositorySTRINGSELECTtrue

Output

Type: OBJECT

Properties

NameTypeControl Type
numberINTEGERINTEGER
pull_requestOBJECT
Properties {INTEGER(id), STRING(state), STRING(title), STRING(body), INTEGER(commits)}
OBJECT_BUILDER
senderOBJECT
Properties {STRING(login), INTEGER(id)}
OBJECT_BUILDER
actionSTRINGTEXT
repositoryOBJECT
Properties {INTEGER(id), STRING(name), STRING(full_name), {STRING(login), INTEGER(id)}(owner), STRING(visibility), INTEGER(forks), INTEGER(open_issues), STRING(default_branch)}
OBJECT_BUILDER

JSON Example

{
"label" : "New Pull Request",
"name" : "newPullRequest",
"parameters" : {
"repository" : ""
},
"type" : "github/v1/newPullRequest"
}


Additional instructions


Connection Setup

  1. Login to your GitHub account.
  2. Click on your profile icon in the top right corner.
  3. Select Settings from the dropdown menu.
  4. In the left sidebar, click on Developer settings.
  5. In the left sidebar, click on OAuth Apps.
  6. Click on New OAuth App.
  7. Fill in the required fields:
    • Application name: Enter a name for your application (e.g., Test App).
    • Homepage URL: Provide the homepage URL for your application (e.g., https://www.bytechef.io/).
    • Authorization callback URL: Specify the URL where users will be redirected after authorization (e.g., http://127.0.0.1:5173/callback).
  8. Click Register application.
  9. Click on Generate a new client secret.
  10. Copy the Client ID and Client Secret for later use.