Zum Inhalt springen
DeutschlandGPT

GitHub

Manage repositories, issues, and pull requests from workflows

Connect your GitHub account to manage repositories, issues, and pull requests directly from your workflows.

Authentication: OAuth 2.0. Connect your GitHub account via the Integrations page.

Actions

List Repositories

Returns repositories accessible to the authenticated account.

OutputTypeDescription
repositoriesarrayRepository objects with name, fullName, description, url, isPrivate

List Issues

Returns issues for a repository.

InputRequiredDescription
OwnerYesRepository owner (user or org)
RepositoryYesRepository name
StateNoopen (default), closed, or all
LabelsNoFilter by label names
AssigneeNoFilter by assignee username
OutputTypeDescription
issuesarrayIssue objects with number, title, state, labels, assignee

Create Issue

Creates a new GitHub issue.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
TitleYesIssue title
BodyNoIssue description (supports Markdown)
LabelsNoLabels to apply
AssigneesNoUsernames to assign
MilestoneNoMilestone number
OutputTypeDescription
issueNumbernumberIssue number
urlstringLink to the issue

Update Issue

Updates an existing issue.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
Issue NumberYesIssue number to update
TitleNoNew title
BodyNoNew description
StateNoopen or closed
LabelsNoUpdated labels
AssigneesNoUpdated assignees

Create Issue Comment

Adds a comment to a GitHub issue or pull request.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
Issue NumberYesIssue or PR number
BodyYesComment text
OutputTypeDescription
commentIdnumberID of the new comment

List Pull Requests

Returns pull requests for a repository.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
StateNoopen, closed, or all
BaseNoFilter by base branch
OutputTypeDescription
pullRequestsarrayPR objects with number, title, state, headBranch, baseBranch

Get Pull Request

Retrieves a specific pull request.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
PR NumberYesPull request number
OutputTypeDescription
pullRequestobjectFull PR object including title, body, state, commits, changedFiles

Create Pull Request

Opens a new pull request.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
TitleYesPR title
HeadYesBranch containing changes
BaseYesBranch to merge into
BodyNoPR description
DraftNoCreate as draft PR
OutputTypeDescription
prNumbernumberPull request number
urlstringLink to the PR

Get Pull Request Files

Returns the files changed in a pull request.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
PR NumberYesPR number
OutputTypeDescription
filesarrayFile objects with filename, status, additions, deletions, patch

Get Repository Content

Lists files and directories at a path in a repository.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
PathNoDirectory path (defaults to root)
BranchNoBranch name
OutputTypeDescription
contentsarrayFile/directory objects

Get File Content

Returns the content of a specific file.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
PathYesFile path
BranchNoBranch name
OutputTypeDescription
contentstringDecoded file content
shastringFile SHA

Search Code

Searches code across GitHub repositories.

InputRequiredDescription
QueryYesSearch query (supports GitHub code search syntax)
OutputTypeDescription
itemsarrayCode search results with path, repository, url

List Branches

Returns branches for a repository.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
OutputTypeDescription
branchesarrayBranch objects with name, sha

List Releases

Returns releases for a repository.

InputRequiredDescription
OwnerYesRepository owner
RepositoryYesRepository name
OutputTypeDescription
releasesarrayRelease objects with tagName, name, body, publishedAt
Was this page helpful?