Skip to content

GithubClient

Attributes

MultipleFetchModel module-attribute

MultipleFetchModel = List['GeneralAPIModel']

TRIGGER_OPERATIONS module-attribute

TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'WebhookPullRequestTrigger': {'operation_id': 'WebhookPullRequestTrigger', 'path': '/{connectionId}/repos/{repositoryOwner}/{repositoryName}/hooks', 'method': 'post', 'required_parameters': ['repositoryOwner', 'repositoryName'], 'callback_payload_type': 'WebhookCreationResponse'}, 'IssueOpened': {'operation_id': 'IssueOpened', 'path': '/{connectionId}/trigger/issueOpened', 'method': 'get', 'required_parameters': [], 'callback_payload_type': 'IssueDetailsModel'}, 'IssueClosed': {'operation_id': 'IssueClosed', 'path': '/{connectionId}/trigger/issueClosed', 'method': 'get', 'required_parameters': [], 'callback_payload_type': 'IssueDetailsModel'}, 'IssueAssigned': {'operation_id': 'IssueAssigned', 'path': '/{connectionId}/trigger/issueAssigned', 'method': 'get', 'required_parameters': [], 'callback_payload_type': 'IssueDetailsModel'}}

Classes

IssueDetailsModel dataclass

IssueDetailsModel(title: Optional[str] = None, body: Optional[str] = None, assignee: Optional[UserDetailsModel] = None, number: Optional[int] = None, state: Optional[str] = None, created_at: Optional[str] = None, repository_url: Optional[str] = None)

Response for Create an issue

Attributes

title class-attribute instance-attribute
title: Optional[str] = None

Summary of the issue.

body class-attribute instance-attribute
body: Optional[str] = None

Description of the issue.

number class-attribute instance-attribute
number: Optional[int] = None

Unique id of the issue.

state class-attribute instance-attribute
state: Optional[str] = None

Status of the issue.

created_at class-attribute instance-attribute
created_at: Optional[str] = None

yyyy-MM-ddTHH:mm:ss.fffZ (UTC format).

repository_url class-attribute instance-attribute
repository_url: Optional[str] = None

Web link to the repository.

ActionsPublicKey dataclass

ActionsPublicKey(key_id: Optional[str] = None, key: Optional[str] = None, id: Optional[int] = None, url: Optional[str] = None, title: Optional[str] = None, created_at: Optional[str] = None)

Response for Get a repository public key

Attributes

key_id class-attribute instance-attribute
key_id: Optional[str] = None

The identifier for the key.

key class-attribute instance-attribute
key: Optional[str] = None

The Base64 encoded public key.

id class-attribute instance-attribute
id: Optional[int] = None

Unique identifier of the key.

url class-attribute instance-attribute
url: Optional[str] = None

Public key url.

title class-attribute instance-attribute
title: Optional[str] = None

Public key title.

created_at class-attribute instance-attribute
created_at: Optional[str] = None

The date and time when the key was created.

RepositoryDetails dataclass

RepositoryDetails(id: Optional[int] = None, node_id: Optional[str] = None, name: Optional[str] = None, full_name: Optional[str] = None, license: Optional[LicenseDetails] = None, forks: Optional[int] = None, permissions: Optional[Dict[str, Any]] = None, owner: Optional[UserDetailsModel] = None, private: Optional[bool] = None, html_url: Optional[str] = None, description: Optional[str] = None, fork: Optional[bool] = None, url: Optional[str] = None, archive_url: Optional[str] = None, assignees_url: Optional[str] = None, blobs_url: Optional[str] = None, branches_url: Optional[str] = None, collaborators_url: Optional[str] = None, comments_url: Optional[str] = None, commits_url: Optional[str] = None, compare_url: Optional[str] = None, contents_url: Optional[str] = None, contributors_url: Optional[str] = None, deployments_url: Optional[str] = None, downloads_url: Optional[str] = None, events_url: Optional[str] = None, forks_url: Optional[str] = None, git_commits_url: Optional[str] = None, git_refs_url: Optional[str] = None, git_tags_url: Optional[str] = None, git_url: Optional[str] = None, issue_comment_url: Optional[str] = None, issue_events_url: Optional[str] = None, issues_url: Optional[str] = None, keys_url: Optional[str] = None, labels_url: Optional[str] = None, languages_url: Optional[str] = None, merges_url: Optional[str] = None, milestones_url: Optional[str] = None, notifications_url: Optional[str] = None, pulls_url: Optional[str] = None, releases_url: Optional[str] = None, ssh_url: Optional[str] = None, stargazers_url: Optional[str] = None, statuses_url: Optional[str] = None, subscribers_url: Optional[str] = None, subscription_url: Optional[str] = None, tags_url: Optional[str] = None, teams_url: Optional[str] = None, trees_url: Optional[str] = None, clone_url: Optional[str] = None, mirror_url: Optional[str] = None, hooks_url: Optional[str] = None, svn_url: Optional[str] = None, homepage: Optional[str] = None, language: Optional[str] = None, forks_count: Optional[int] = None, stargazers_count: Optional[int] = None, watchers_count: Optional[int] = None, size: Optional[int] = None, default_branch: Optional[str] = None, open_issues_count: Optional[int] = None, is_template: Optional[bool] = None, topics: Optional[List[str]] = None, has_issues: Optional[bool] = None, has_projects: Optional[bool] = None, has_wiki: Optional[bool] = None, has_pages: Optional[bool] = None, has_downloads: Optional[bool] = None, archived: Optional[bool] = None, disabled: Optional[bool] = None, visibility: Optional[str] = None, pushed_at: Optional[str] = None, created_at: Optional[str] = None, updated_at: Optional[str] = None, allow_rebase_merge: Optional[bool] = None, template_repository: Optional[Dict[str, Any]] = None, temp_clone_token: Optional[str] = None, allow_squash_merge: Optional[bool] = None, delete_branch_on_merge: Optional[bool] = None, allow_merge_commit: Optional[bool] = None, subscribers_count: Optional[int] = None, network_count: Optional[int] = None, open_issues: Optional[int] = None, watchers: Optional[int] = None, master_branch: Optional[str] = None, starred_at: Optional[str] = None)

Response for Create a repository using a template

Attributes

id class-attribute instance-attribute
id: Optional[int] = None

Unique identifier of the repository.

node_id class-attribute instance-attribute
node_id: Optional[str] = None

The Node Id of the repository.

name class-attribute instance-attribute
name: Optional[str] = None

The name of the repository.

full_name class-attribute instance-attribute
full_name: Optional[str] = None

The full name of the repository.

forks class-attribute instance-attribute
forks: Optional[int] = None

The number of forks of the repository.

permissions class-attribute instance-attribute
permissions: Optional[Dict[str, Any]] = None

Permissions on the repository.

private class-attribute instance-attribute
private: Optional[bool] = None

Whether the repository is private or public.

html_url class-attribute instance-attribute
html_url: Optional[str] = None

The Html Url of the repository

description class-attribute instance-attribute
description: Optional[str] = None

The description of the repository

fork class-attribute instance-attribute
fork: Optional[bool] = None

If the repository is a fork?

url class-attribute instance-attribute
url: Optional[str] = None

The HTTP URL for this repository

archive_url class-attribute instance-attribute
archive_url: Optional[str] = None

The Archive URL for this repository

assignees_url class-attribute instance-attribute
assignees_url: Optional[str] = None

The Assignees URL for this repository

blobs_url class-attribute instance-attribute
blobs_url: Optional[str] = None

The Blobs URL for this repository

branches_url class-attribute instance-attribute
branches_url: Optional[str] = None

The Branches URL for this repository

collaborators_url class-attribute instance-attribute
collaborators_url: Optional[str] = None

The Collaborators URL for this repository

comments_url class-attribute instance-attribute
comments_url: Optional[str] = None

The Comments URL for this repository

commits_url class-attribute instance-attribute
commits_url: Optional[str] = None

The Commits URL for this repository

compare_url class-attribute instance-attribute
compare_url: Optional[str] = None

The Compare URL for this repository

contents_url class-attribute instance-attribute
contents_url: Optional[str] = None

The Contents URL for this repository

contributors_url class-attribute instance-attribute
contributors_url: Optional[str] = None

The Contributors URL for this repository

deployments_url class-attribute instance-attribute
deployments_url: Optional[str] = None

The Deployments URL for this repository

downloads_url class-attribute instance-attribute
downloads_url: Optional[str] = None

The Downloads URL for this repository

events_url class-attribute instance-attribute
events_url: Optional[str] = None

The Events URL for this repository

forks_url class-attribute instance-attribute
forks_url: Optional[str] = None

The Forks URL for this repository

git_commits_url class-attribute instance-attribute
git_commits_url: Optional[str] = None

The Git Commits URL for this repository

git_refs_url class-attribute instance-attribute
git_refs_url: Optional[str] = None

The Git References URL for this repository

git_tags_url class-attribute instance-attribute
git_tags_url: Optional[str] = None

The Git Tags URL for this repository

git_url class-attribute instance-attribute
git_url: Optional[str] = None

The Git URL for this repository

issue_comment_url class-attribute instance-attribute
issue_comment_url: Optional[str] = None

The issue comment URL for this repository

issue_events_url class-attribute instance-attribute
issue_events_url: Optional[str] = None

The issue events URL for this repository

issues_url class-attribute instance-attribute
issues_url: Optional[str] = None

The issues URL for this repository

keys_url class-attribute instance-attribute
keys_url: Optional[str] = None

The keys URL for this repository

labels_url class-attribute instance-attribute
labels_url: Optional[str] = None

The labels URL for this repository

languages_url class-attribute instance-attribute
languages_url: Optional[str] = None

The languages URL for this repository

merges_url class-attribute instance-attribute
merges_url: Optional[str] = None

The merges URL for this repository

milestones_url class-attribute instance-attribute
milestones_url: Optional[str] = None

The milestones URL for this repository

notifications_url class-attribute instance-attribute
notifications_url: Optional[str] = None

The notifications URL for this repository

pulls_url class-attribute instance-attribute
pulls_url: Optional[str] = None

The pulls URL for this repository

releases_url class-attribute instance-attribute
releases_url: Optional[str] = None

The releases URL for this repository

ssh_url class-attribute instance-attribute
ssh_url: Optional[str] = None

The SSH URL to clone this repository

stargazers_url class-attribute instance-attribute
stargazers_url: Optional[str] = None

The stargazers (Stargazers are the people that have bookmarked the GitHub repository) URL for this repository

statuses_url class-attribute instance-attribute
statuses_url: Optional[str] = None

The statuses URL for this repository

subscribers_url class-attribute instance-attribute
subscribers_url: Optional[str] = None

The subscribers URL for this repository

subscription_url class-attribute instance-attribute
subscription_url: Optional[str] = None

The subscription URL for this repository

tags_url class-attribute instance-attribute
tags_url: Optional[str] = None

The tags URL for this repository

teams_url class-attribute instance-attribute
teams_url: Optional[str] = None

The teams URL for this repository

trees_url class-attribute instance-attribute
trees_url: Optional[str] = None

The trees URL for this repository

clone_url class-attribute instance-attribute
clone_url: Optional[str] = None

The clone URL for this repository

mirror_url class-attribute instance-attribute
mirror_url: Optional[str] = None

The original mirror URL for this repository

hooks_url class-attribute instance-attribute
hooks_url: Optional[str] = None

The hooks URL for this repository

svn_url class-attribute instance-attribute
svn_url: Optional[str] = None

The SVN URL for this repository

homepage class-attribute instance-attribute
homepage: Optional[str] = None

The homepage for this repository

language class-attribute instance-attribute
language: Optional[str] = None

The language for this repository

forks_count class-attribute instance-attribute
forks_count: Optional[int] = None

Number of forks there are of this repository in the whole network.

stargazers_count class-attribute instance-attribute
stargazers_count: Optional[int] = None

Number of users who have starred the repository.

watchers_count class-attribute instance-attribute
watchers_count: Optional[int] = None

Number of users watching the repository.

size class-attribute instance-attribute
size: Optional[int] = None

Size of the repository

default_branch class-attribute instance-attribute
default_branch: Optional[str] = None

The default branch of the repository.

open_issues_count class-attribute instance-attribute
open_issues_count: Optional[int] = None

Number of open issues in the repository.

is_template class-attribute instance-attribute
is_template: Optional[bool] = None

Whether this repository acts as a template that can be used to generate new repositories.

topics class-attribute instance-attribute
topics: Optional[List[str]] = None

List of topics in the repository

has_issues class-attribute instance-attribute
has_issues: Optional[bool] = None

Whether issues are enabled.

has_projects class-attribute instance-attribute
has_projects: Optional[bool] = None

Whether projects are enabled.

has_wiki class-attribute instance-attribute
has_wiki: Optional[bool] = None

Whether the wiki is enabled.

has_pages class-attribute instance-attribute
has_pages: Optional[bool] = None

Whether pages are enabled.

has_downloads class-attribute instance-attribute
has_downloads: Optional[bool] = None

Whether downloads are enabled.

archived class-attribute instance-attribute
archived: Optional[bool] = None

Whether the repository is archived.

disabled class-attribute instance-attribute
disabled: Optional[bool] = None

Returns whether or not this repository disabled.

visibility class-attribute instance-attribute
visibility: Optional[str] = None

The repository visibility: public, private, or internal.

pushed_at class-attribute instance-attribute
pushed_at: Optional[str] = None

When the repository was last pushed to.

created_at class-attribute instance-attribute
created_at: Optional[str] = None

the date and time when the repository was created.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = None

the date and time when the repository was last updated.

allow_rebase_merge class-attribute instance-attribute
allow_rebase_merge: Optional[bool] = None

Whether to allow rebase merges for pull requests.

temp_clone_token class-attribute instance-attribute
temp_clone_token: Optional[str] = None

Temporary authentication token for cloning this repository.

allow_squash_merge class-attribute instance-attribute
allow_squash_merge: Optional[bool] = None

Whether to allow squash merges for pull requests.

delete_branch_on_merge class-attribute instance-attribute
delete_branch_on_merge: Optional[bool] = None

Whether to delete head branches when pull requests are merged

allow_merge_commit class-attribute instance-attribute
allow_merge_commit: Optional[bool] = None

Whether to allow merge commits for pull requests.

subscribers_count class-attribute instance-attribute
subscribers_count: Optional[int] = None

Number of subscribers for the repository.

network_count class-attribute instance-attribute
network_count: Optional[int] = None

Repository Network Count

open_issues class-attribute instance-attribute
open_issues: Optional[int] = None

Repository open issues.

watchers class-attribute instance-attribute
watchers: Optional[int] = None

Repository Watchers.

master_branch class-attribute instance-attribute
master_branch: Optional[str] = None

Repository master branch.

starred_at class-attribute instance-attribute
starred_at: Optional[str] = None

Repository Starred At

GitReference dataclass

GitReference(ref: Optional[str] = None, node_id: Optional[str] = None, url: Optional[str] = None, object: Optional[Dict[str, Any]] = None)

Response for Create a reference

Attributes

ref class-attribute instance-attribute
ref: Optional[str] = None

The name of the fully qualified reference.

node_id class-attribute instance-attribute
node_id: Optional[str] = None

The Node Id of the reference.

url class-attribute instance-attribute
url: Optional[str] = None

The url of the reference.

PullRequestMergeResult dataclass

PullRequestMergeResult(sha: Optional[str] = None, merged: Optional[bool] = None, message: Optional[str] = None)

Response for Merge a pull request

Attributes

sha class-attribute instance-attribute
sha: Optional[str] = None

SHA for the merge commit.

merged class-attribute instance-attribute
merged: Optional[bool] = None

Whether or not the pull request was merged.

message class-attribute instance-attribute
message: Optional[str] = None

Merge response message.

PullRequest dataclass

PullRequest(url: Optional[str] = None, id: Optional[int] = None, node_id: Optional[str] = None, html_url: Optional[str] = None, diff_url: Optional[str] = None, patch_url: Optional[str] = None, issue_url: Optional[str] = None, commits_url: Optional[str] = None, review_comments_url: Optional[str] = None, review_comment_url: Optional[str] = None, comments_url: Optional[str] = None, statuses_url: Optional[str] = None, number: Optional[int] = None, state: Optional[str] = None, locked: Optional[bool] = None, title: Optional[str] = None, user: Optional[UserDetailsModel] = None, body: Optional[str] = None, labels: Optional[List[Label]] = None, milestone: Optional[Milestone] = None, active_lock_reason: Optional[str] = None, created_at: Optional[str] = None, updated_at: Optional[str] = None, closed_at: Optional[str] = None, merged_at: Optional[str] = None, merge_commit_sha: Optional[str] = None, assignee: Optional[UserDetailsModel] = None, assignees: Optional[List[UserDetailsModel]] = None, requested_reviewers: Optional[List[UserDetailsModel]] = None, requested_teams: Optional[List[TeamDetails]] = None, head: Optional[Dict[str, Any]] = None, base: Optional[Dict[str, Any]] = None, author_association: Optional[str] = None, draft: Optional[bool] = None, merged: Optional[bool] = None, mergeable: Optional[bool] = None, rebaseable: Optional[bool] = None, mergeable_state: Optional[str] = None, merged_by: Optional[UserDetailsModel] = None, comments: Optional[int] = None, review_comments: Optional[int] = None, maintainer_can_modify: Optional[bool] = None, commits: Optional[int] = None, additions: Optional[int] = None, deletions: Optional[int] = None, changed_files: Optional[int] = None)

Response for Get a pull request

Attributes

url class-attribute instance-attribute
url: Optional[str] = None

The HTTP URL for this pull request.

id class-attribute instance-attribute
id: Optional[int] = None

The Unique Identifier for the pull request.

node_id class-attribute instance-attribute
node_id: Optional[str] = None

The Node ID for the pull request.

html_url class-attribute instance-attribute
html_url: Optional[str] = None

The HTML URL for the pull request.

diff_url class-attribute instance-attribute
diff_url: Optional[str] = None

The Diff URL for the pull request.

patch_url class-attribute instance-attribute
patch_url: Optional[str] = None

The patch URL for the pull request.

issue_url class-attribute instance-attribute
issue_url: Optional[str] = None

The issue URL for the pull request.

commits_url class-attribute instance-attribute
commits_url: Optional[str] = None

The commit URL for the pull request.

review_comments_url class-attribute instance-attribute
review_comments_url: Optional[str] = None

The review comments URL for the pull request.

review_comment_url class-attribute instance-attribute
review_comment_url: Optional[str] = None

The review comment URL for the pull request.

comments_url class-attribute instance-attribute
comments_url: Optional[str] = None

The Diff URL for the pull request.

statuses_url class-attribute instance-attribute
statuses_url: Optional[str] = None

The statuses URL for the pull request.

number class-attribute instance-attribute
number: Optional[int] = None

Number uniquely identifying the pull request within its repository.

state class-attribute instance-attribute
state: Optional[str] = None

State of this Pull Request. Either open or closed.

locked class-attribute instance-attribute
locked: Optional[bool] = None

Whether the pull request is locked or not.

title class-attribute instance-attribute
title: Optional[str] = None

The title of the pull request.

body class-attribute instance-attribute
body: Optional[str] = None

The body as Markdown.

labels class-attribute instance-attribute
labels: Optional[List[Label]] = None

The list of labels associated with the pull request.

active_lock_reason class-attribute instance-attribute
active_lock_reason: Optional[str] = None

Reason that the conversation was locked.

created_at class-attribute instance-attribute
created_at: Optional[str] = None

The date and time when the pull request was created.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = None

The date and time when the pull request was last updated.

closed_at class-attribute instance-attribute
closed_at: Optional[str] = None

The date and time when the pull request was closed.

merged_at class-attribute instance-attribute
merged_at: Optional[str] = None

The date and time that the pull request was merged.

merge_commit_sha class-attribute instance-attribute
merge_commit_sha: Optional[str] = None

The merge commit Sha of the pull request.

assignees class-attribute instance-attribute
assignees: Optional[List[UserDetailsModel]] = None

The list of assignees for the pull request.

requested_reviewers class-attribute instance-attribute
requested_reviewers: Optional[List[UserDetailsModel]] = None

The list of Users assigned to this pull request.

requested_teams class-attribute instance-attribute
requested_teams: Optional[List[TeamDetails]] = None

The list of requested teams to this pull request.

head class-attribute instance-attribute
head: Optional[Dict[str, Any]] = None

Head

base class-attribute instance-attribute
base: Optional[Dict[str, Any]] = None

Base

author_association class-attribute instance-attribute
author_association: Optional[str] = None

Author's association with the subject of the comment.

draft class-attribute instance-attribute
draft: Optional[bool] = None

Indicates whether or not the pull request is a draft.

merged class-attribute instance-attribute
merged: Optional[bool] = None

Whether or not the pull request was merged.

mergeable class-attribute instance-attribute
mergeable: Optional[bool] = None

Whether or not the pull request can be merged based on the existence of merge conflicts.

rebaseable class-attribute instance-attribute
rebaseable: Optional[bool] = None

Whether or not the pull request is rebaseable.

mergeable_state class-attribute instance-attribute
mergeable_state: Optional[str] = None

The mergeable state of the pull request.

comments class-attribute instance-attribute
comments: Optional[int] = None

The number of comments in this pull request.

review_comments class-attribute instance-attribute
review_comments: Optional[int] = None

The number of review comments in this pull request.

maintainer_can_modify class-attribute instance-attribute
maintainer_can_modify: Optional[bool] = None

Indicates whether maintainers can modify the pull request.

commits class-attribute instance-attribute
commits: Optional[int] = None

The number of commits in this pull request.

additions class-attribute instance-attribute
additions: Optional[int] = None

The number of additions in this pull request.

deletions class-attribute instance-attribute
deletions: Optional[int] = None

The number of deletions in this pull request.

changed_files class-attribute instance-attribute
changed_files: Optional[int] = None

The number of changed files in this pull request.

PullRequestFile dataclass

PullRequestFile(sha: Optional[str] = None, filename: Optional[str] = None, status: Optional[str] = None, additions: Optional[int] = None, deletions: Optional[int] = None, changes: Optional[int] = None, blob_url: Optional[str] = None, raw_url: Optional[str] = None, contents_url: Optional[str] = None, patch: Optional[str] = None)

Response for Get the list of files from a pull request

Attributes

sha class-attribute instance-attribute
sha: Optional[str] = None

The sha for the file.

filename class-attribute instance-attribute
filename: Optional[str] = None

The file name.

status class-attribute instance-attribute
status: Optional[str] = None

The modification status for the file.

additions class-attribute instance-attribute
additions: Optional[int] = None

The number of additions made to the file.

deletions class-attribute instance-attribute
deletions: Optional[int] = None

The number of deletions made to the file.

changes class-attribute instance-attribute
changes: Optional[int] = None

The number of changes made to the file.

blob_url class-attribute instance-attribute
blob_url: Optional[str] = None

The blob Url for the file.

raw_url class-attribute instance-attribute
raw_url: Optional[str] = None

The Raw Url for the file.

contents_url class-attribute instance-attribute
contents_url: Optional[str] = None

The contents Url for the file.

patch class-attribute instance-attribute
patch: Optional[str] = None

The patch content for the file.

CommitComparison dataclass

CommitComparison(url: Optional[str] = None, html_url: Optional[str] = None, permalink_url: Optional[str] = None, diff_url: Optional[str] = None, patch_url: Optional[str] = None, base_commit: Optional[Commit] = None, merge_base_commit: Optional[Commit] = None, status: Optional[str] = None, ahead_by: Optional[int] = None, behind_by: Optional[int] = None, total_commits: Optional[int] = None, commits: Optional[List[Commit]] = None, files: Optional[List[DiffEntry]] = None)

Response for Compare two commits

Attributes

url class-attribute instance-attribute
url: Optional[str] = None

Url for the comparison

html_url class-attribute instance-attribute
html_url: Optional[str] = None

Html Url for the comparison

permalink_url: Optional[str] = None

Permanent Url for the comparison

diff_url class-attribute instance-attribute
diff_url: Optional[str] = None

Diff Url

patch_url class-attribute instance-attribute
patch_url: Optional[str] = None

Patch Url

status class-attribute instance-attribute
status: Optional[str] = None

Status of the comparision eg. diverged etc.,

ahead_by class-attribute instance-attribute
ahead_by: Optional[int] = None

ahead by base branch

behind_by class-attribute instance-attribute
behind_by: Optional[int] = None

behind_by base branch

total_commits class-attribute instance-attribute
total_commits: Optional[int] = None

total commits

commits class-attribute instance-attribute
commits: Optional[List[Commit]] = None

commits

files class-attribute instance-attribute
files: Optional[List[DiffEntry]] = None

files

WebhookCreationResponse dataclass

WebhookCreationResponse(type_: Optional[str] = None, id: Optional[int] = None, name: Optional[str] = None, active: Optional[bool] = None, events: Optional[List[str]] = None, config: Optional[Dict[str, Any]] = None, updated_at: Optional[str] = None, created_at: Optional[str] = None, url: Optional[str] = None, test_url: Optional[str] = None, ping_url: Optional[str] = None, last_response: Optional[Dict[str, Any]] = None)

Response for When a pull request is created or modified

Milestone dataclass

Milestone(url: Optional[str] = None, html_url: Optional[str] = None, labels_url: Optional[str] = None, id: Optional[int] = None, node_id: Optional[str] = None, number: Optional[int] = None, state: Optional[str] = None, title: Optional[str] = None, description: Optional[str] = None, creator: Optional[UserDetailsModel] = None, open_issues: Optional[int] = None, closed_issues: Optional[int] = None, created_at: Optional[str] = None, updated_at: Optional[str] = None, closed_at: Optional[str] = None, due_on: Optional[str] = None)

Response for Update a milestone

Attributes

url class-attribute instance-attribute
url: Optional[str] = None

The HTTP URL for the milestone.

html_url class-attribute instance-attribute
html_url: Optional[str] = None

The HTML URL for the milestone.

labels_url class-attribute instance-attribute
labels_url: Optional[str] = None

The labels URL for the milestone.

id class-attribute instance-attribute
id: Optional[int] = None

The Unique Identifier for the milestone.

node_id class-attribute instance-attribute
node_id: Optional[str] = None

The Node ID for the milestone.

number class-attribute instance-attribute
number: Optional[int] = None

The number of the milestone.

state class-attribute instance-attribute
state: Optional[str] = None

The state of the milestone.

title class-attribute instance-attribute
title: Optional[str] = None

The title of the milestone.

description class-attribute instance-attribute
description: Optional[str] = None

The description of the milestone.

open_issues class-attribute instance-attribute
open_issues: Optional[int] = None

Number of open issues for the repository.

closed_issues class-attribute instance-attribute
closed_issues: Optional[int] = None

Number of closed issues for the repository.

created_at class-attribute instance-attribute
created_at: Optional[str] = None

The date and time when the milestone was created.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = None

The date and time when the milestone was last updated.

closed_at class-attribute instance-attribute
closed_at: Optional[str] = None

The date and time when the milestone was closed.

due_on class-attribute instance-attribute
due_on: Optional[str] = None

The due date of the milestone.

UserDetailsModel dataclass

UserDetailsModel(login: Optional[str] = None, id: Optional[int] = None, node_id: Optional[str] = None, avatar_url: Optional[str] = None, gravatar_id: Optional[str] = None, url: Optional[str] = None, html_url: Optional[str] = None, followers_url: Optional[str] = None, following_url: Optional[str] = None, gists_url: Optional[str] = None, starred_url: Optional[str] = None, subscriptions_url: Optional[str] = None, organizations_url: Optional[str] = None, repos_url: Optional[str] = None, events_url: Optional[str] = None, received_events_url: Optional[str] = None, type_: Optional[str] = None, site_admin: Optional[bool] = None, name: Optional[str] = None, company: Optional[str] = None, blog: Optional[str] = None, location: Optional[str] = None, email: Optional[str] = None, hireable: Optional[bool] = None, bio: Optional[str] = None, public_repos: Optional[int] = None, public_gists: Optional[int] = None, followers: Optional[int] = None, following: Optional[int] = None, created_at: Optional[str] = None, updated_at: Optional[str] = None)

Response for Get the authenticated user

Attributes

login class-attribute instance-attribute
login: Optional[str] = None

User Login.

id class-attribute instance-attribute
id: Optional[int] = None

User Id.

node_id class-attribute instance-attribute
node_id: Optional[str] = None

User Node Id.

avatar_url class-attribute instance-attribute
avatar_url: Optional[str] = None

User Avatar Url.

gravatar_id class-attribute instance-attribute
gravatar_id: Optional[str] = None

User Gravatar Id.

url class-attribute instance-attribute
url: Optional[str] = None

User Url.

html_url class-attribute instance-attribute
html_url: Optional[str] = None

User Html Url.

followers_url class-attribute instance-attribute
followers_url: Optional[str] = None

User FollowersUrl

following_url class-attribute instance-attribute
following_url: Optional[str] = None

User Following Url.

gists_url class-attribute instance-attribute
gists_url: Optional[str] = None

User Gists Url.

starred_url class-attribute instance-attribute
starred_url: Optional[str] = None

User Starred Url.

subscriptions_url class-attribute instance-attribute
subscriptions_url: Optional[str] = None

User Subscriptions Url.

organizations_url class-attribute instance-attribute
organizations_url: Optional[str] = None

User Organizations Url.

repos_url class-attribute instance-attribute
repos_url: Optional[str] = None

User Repos Url.

events_url class-attribute instance-attribute
events_url: Optional[str] = None

User Events Url.

received_events_url class-attribute instance-attribute
received_events_url: Optional[str] = None

User Received Events Url.

type_ class-attribute instance-attribute
type_: Optional[str] = field(default=None, metadata={'wire_name': 'type'})

User Type.

site_admin class-attribute instance-attribute
site_admin: Optional[bool] = None

Is User Site Admin?

name class-attribute instance-attribute
name: Optional[str] = None

User Name.

company class-attribute instance-attribute
company: Optional[str] = None

User Company.

blog class-attribute instance-attribute
blog: Optional[str] = None

User Blog.

location class-attribute instance-attribute
location: Optional[str] = None

User Location.

email class-attribute instance-attribute
email: Optional[str] = None

User Email.

hireable class-attribute instance-attribute
hireable: Optional[bool] = None

User Hireable?

bio class-attribute instance-attribute
bio: Optional[str] = None

User Bio.

public_repos class-attribute instance-attribute
public_repos: Optional[int] = None

User Public Repos.

public_gists class-attribute instance-attribute
public_gists: Optional[int] = None

User Public Gists.

followers class-attribute instance-attribute
followers: Optional[int] = None

User Followers.

following class-attribute instance-attribute
following: Optional[int] = None

User Following.

created_at class-attribute instance-attribute
created_at: Optional[str] = None

User Created At.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = None

User Updated At.

GeneralAPIModel dataclass

GeneralAPIModel(additional_properties: Dict[str, Any] = dict())

Response for Check if a user is a repository collaborator

Attributes

additional_properties class-attribute instance-attribute
additional_properties: Dict[str, Any] = field(default_factory=dict)

Dynamic properties determined at runtime (similar to .NET [JsonExtensionData])

MultipleSearchFetchModel dataclass

MultipleSearchFetchModel(body: Optional[List[GeneralAPIModel]] = None)

Response for Find issues by state and keyword

Attributes

body class-attribute instance-attribute
body: Optional[List[GeneralAPIModel]] = None

body of result

IssueBasicDetailsModel dataclass

IssueBasicDetailsModel(title: Optional[str] = None, body: Optional[str] = None)

Definition: IssueBasicDetailsModel

Attributes

title class-attribute instance-attribute
title: Optional[str] = None

Summary of the issue.

body class-attribute instance-attribute
body: Optional[str] = None

Description of the issue.

SingleSearchFetchModel dataclass

SingleSearchFetchModel(body: Optional[List[GeneralAPIModel]] = None)

Definition: SingleSearchFetchModel

Attributes

body class-attribute instance-attribute
body: Optional[List[GeneralAPIModel]] = None

body of result

IssueUpdateModel dataclass

IssueUpdateModel(title: Optional[str] = None, body: Optional[str] = None, assignee: Optional[str] = None, state: Optional[str] = None, state_reason: Optional[str] = None, milestone: Optional[str] = None, labels: Optional[List[str]] = None, assignees: Optional[List[str]] = None)

Definition: IssueUpdateModel

Attributes

title class-attribute instance-attribute
title: Optional[str] = None

Summary of the issue.

body class-attribute instance-attribute
body: Optional[str] = None

Description of the issue.

assignee class-attribute instance-attribute
assignee: Optional[str] = None

Assignee of the issue.

state class-attribute instance-attribute
state: Optional[str] = None

The open or close state of an issue. Can be one of open or closed.

state_reason class-attribute instance-attribute
state_reason: Optional[str] = None

The reason for change of state.

milestone class-attribute instance-attribute
milestone: Optional[str] = None

Number of milestones to associate with issue.

labels class-attribute instance-attribute
labels: Optional[List[str]] = None

labels associated with the issue.

assignees class-attribute instance-attribute
assignees: Optional[List[str]] = None

UserSnames to assign to the issue.

MilestoneUpdateModel dataclass

MilestoneUpdateModel(title: Optional[str] = None, state: Optional[str] = None, description: Optional[str] = None, due_on: Optional[str] = None)

Definition: MilestoneUpdateModel

Attributes

title class-attribute instance-attribute
title: Optional[str] = None

Summary of the milestone.

state class-attribute instance-attribute
state: Optional[str] = None

The open or close state of the milestone.

description class-attribute instance-attribute
description: Optional[str] = None

A description of the milestone.

due_on class-attribute instance-attribute
due_on: Optional[str] = None

Due date of the milestone.

Verification dataclass

Verification(verified: Optional[bool] = None, reason: Optional[str] = None, payload: Optional[str] = None, signature: Optional[str] = None)

Definition: Verification

Attributes

verified class-attribute instance-attribute
verified: Optional[bool] = None

Indicates whether GitHub considers the signature in this commit to be verified.

reason class-attribute instance-attribute
reason: Optional[str] = None

The reason for verified value.

payload class-attribute instance-attribute
payload: Optional[str] = None

The value that was signed.

signature class-attribute instance-attribute
signature: Optional[str] = None

The signature that was extracted from the commit.

GitUser dataclass

GitUser(name: Optional[str] = None, email: Optional[str] = None, date: Optional[str] = None)

Definition: GitUser

Attributes

name class-attribute instance-attribute
name: Optional[str] = None

User Name

email class-attribute instance-attribute
email: Optional[str] = None

Email

date class-attribute instance-attribute
date: Optional[str] = None

Timestamp of Commit.

GraphQlQuery dataclass

GraphQlQuery(query: Optional[str] = None)

Definition: GraphQlQuery

Attributes

query class-attribute instance-attribute
query: Optional[str] = None

query

DiffEntry dataclass

DiffEntry(filename: Optional[str] = None, additions: Optional[int] = None, deletions: Optional[int] = None, changes: Optional[int] = None, status: Optional[str] = None, raw_url: Optional[str] = None, blob_url: Optional[str] = None, patch: Optional[str] = None, sha: Optional[str] = None, contents_url: Optional[str] = None, previous_filename: Optional[str] = None)

Definition: DiffEntry

Attributes

filename class-attribute instance-attribute
filename: Optional[str] = None

Changed File Name.

additions class-attribute instance-attribute
additions: Optional[int] = None

Number of additions in the file

deletions class-attribute instance-attribute
deletions: Optional[int] = None

Number of Deletions in the file

changes class-attribute instance-attribute
changes: Optional[int] = None

Number of Changes in the file

status class-attribute instance-attribute
status: Optional[str] = None

Status of the change modified, renamed etc.,

raw_url class-attribute instance-attribute
raw_url: Optional[str] = None

Raw Url link to the file

blob_url class-attribute instance-attribute
blob_url: Optional[str] = None

Blob Url link to the file

patch class-attribute instance-attribute
patch: Optional[str] = None

Actual changes made to the file.

sha class-attribute instance-attribute
sha: Optional[str] = None

SHA of the change.

contents_url class-attribute instance-attribute
contents_url: Optional[str] = None

File Contents Url.

previous_filename class-attribute instance-attribute
previous_filename: Optional[str] = None

Previous FileName if the FileName is changed

Commit dataclass

Commit(url: Optional[str] = None, sha: Optional[str] = None, node_id: Optional[str] = None, html_url: Optional[str] = None, comments_url: Optional[str] = None, commit: Optional[Dict[str, Any]] = None, author: Optional[UserDetailsModel] = None, committer: Optional[UserDetailsModel] = None, parents: Optional[List[Dict[str, Any]]] = None, stats: Optional[Dict[str, Any]] = None, files: Optional[List[DiffEntry]] = None)

Definition: Commit

Attributes

url class-attribute instance-attribute
url: Optional[str] = None

The HTTP URL for the commit.

sha class-attribute instance-attribute
sha: Optional[str] = None

SHA of the commit

node_id class-attribute instance-attribute
node_id: Optional[str] = None

Node Id of the commit.

html_url class-attribute instance-attribute
html_url: Optional[str] = None

HTML Url of the commit

comments_url class-attribute instance-attribute
comments_url: Optional[str] = None

Comments Url of the commit

RepositoryDispatchEvent dataclass

RepositoryDispatchEvent(event_type: Optional[str] = None, client_payload: Optional[Dict[str, Any]] = None)

Definition: RepositoryDispatchEvent

Attributes

event_type class-attribute instance-attribute
event_type: Optional[str] = None

A custom webhook event name.

client_payload class-attribute instance-attribute
client_payload: Optional[Dict[str, Any]] = None

JSON payload with extra information about the webhook event that your action or worklow may use.

CreateRepositorySecretRequest dataclass

CreateRepositorySecretRequest(encrypted_value: Optional[str] = None, key_id: Optional[str] = None)

Definition: CreateRepositorySecretRequest

Attributes

encrypted_value class-attribute instance-attribute
encrypted_value: Optional[str] = None

Value for your secret, encrypted with LibSodium using the public key retrieved from the Get an Repository public key action.

key_id class-attribute instance-attribute
key_id: Optional[str] = None

ID of the key you used to encrypt the secret.

CreateRepositoryUsingTemplateRequest dataclass

CreateRepositoryUsingTemplateRequest(owner: Optional[str] = None, name: Optional[str] = None, description: Optional[str] = None, private: Optional[bool] = None)

Definition: CreateRepositoryUsingTemplateRequest

Attributes

owner class-attribute instance-attribute
owner: Optional[str] = None

The organization or person who will own the new repository. If left blank, the authenticated user will be the owner.

name class-attribute instance-attribute
name: Optional[str] = None

The name of the new repository.

description class-attribute instance-attribute
description: Optional[str] = None

A short description of the new repository.

private class-attribute instance-attribute
private: Optional[bool] = None

Either true to create a new private repository or false to create a new public one.

LicenseDetails dataclass

LicenseDetails(key: Optional[str] = None, name: Optional[str] = None, url: Optional[str] = None, spdx_id: Optional[str] = None, node_id: Optional[str] = None, html_url: Optional[str] = None)

Definition: LicenseDetails

Attributes

key class-attribute instance-attribute
key: Optional[str] = None

The lowercased SPDX Id of the license.

name class-attribute instance-attribute
name: Optional[str] = None

The license full name specified by https://spdx.org/licenses.

url class-attribute instance-attribute
url: Optional[str] = None

URL to the license on https://choosealicense.com.

spdx_id class-attribute instance-attribute
spdx_id: Optional[str] = None

Short identifier specified by https://spdx.org/licenses.

node_id class-attribute instance-attribute
node_id: Optional[str] = None

License Node Id.

html_url class-attribute instance-attribute
html_url: Optional[str] = None

License HTML URL.

RepositoryMiniDetails dataclass

RepositoryMiniDetails(id: Optional[int] = None, node_id: Optional[str] = None, name: Optional[str] = None, full_name: Optional[str] = None, permissions: Optional[Dict[str, Any]] = None, owner: Optional[UserDetailsModel] = None, private: Optional[bool] = None, description: Optional[str] = None, homepage: Optional[str] = None, language: Optional[str] = None, archived: Optional[bool] = None, disabled: Optional[bool] = None, visibility: Optional[str] = None, created_at: Optional[str] = None, updated_at: Optional[str] = None, allow_rebase_merge: Optional[bool] = None, allow_squash_merge: Optional[bool] = None, delete_branch_on_merge: Optional[bool] = None, allow_merge_commit: Optional[bool] = None, master_branch: Optional[str] = None)

Definition: RepositoryMiniDetails

Attributes

id class-attribute instance-attribute
id: Optional[int] = None

Unique identifier of the repository.

node_id class-attribute instance-attribute
node_id: Optional[str] = None

The Node Id of the repository.

name class-attribute instance-attribute
name: Optional[str] = None

The name of the repository.

full_name class-attribute instance-attribute
full_name: Optional[str] = None

The full name of the repository.

permissions class-attribute instance-attribute
permissions: Optional[Dict[str, Any]] = None

Permissions on the repository.

private class-attribute instance-attribute
private: Optional[bool] = None

Whether the repository is private or public.

description class-attribute instance-attribute
description: Optional[str] = None

The description of the repository

homepage class-attribute instance-attribute
homepage: Optional[str] = None

The homepage for this repository

language class-attribute instance-attribute
language: Optional[str] = None

The language for this repository

archived class-attribute instance-attribute
archived: Optional[bool] = None

Whether the repository is archived.

disabled class-attribute instance-attribute
disabled: Optional[bool] = None

Returns whether or not this repository disabled.

visibility class-attribute instance-attribute
visibility: Optional[str] = None

The repository visibility: public, private, or internal.

created_at class-attribute instance-attribute
created_at: Optional[str] = None

the date and time when the repository was created.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = None

the date and time when the repository was last updated.

allow_rebase_merge class-attribute instance-attribute
allow_rebase_merge: Optional[bool] = None

Whether to allow rebase merges for pull requests.

allow_squash_merge class-attribute instance-attribute
allow_squash_merge: Optional[bool] = None

Whether to allow squash merges for pull requests.

delete_branch_on_merge class-attribute instance-attribute
delete_branch_on_merge: Optional[bool] = None

Whether to delete head branches when pull requests are merged

allow_merge_commit class-attribute instance-attribute
allow_merge_commit: Optional[bool] = None

Whether to allow merge commits for pull requests.

master_branch class-attribute instance-attribute
master_branch: Optional[str] = None

Repository master branch.

CreateReferenceRequest dataclass

CreateReferenceRequest(ref: Optional[str] = None, sha: Optional[str] = None)

Definition: CreateReferenceRequest

Attributes

ref class-attribute instance-attribute
ref: Optional[str] = None

The name of the fully qualified reference (ie: refs/heads/master). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.

sha class-attribute instance-attribute
sha: Optional[str] = None

The SHA1 value for this reference.

PullRequestCreateRequest dataclass

PullRequestCreateRequest(title: Optional[str] = None, head: Optional[str] = None, base: Optional[str] = None, body: Optional[str] = None, maintainer_can_modify: Optional[bool] = None, draft: Optional[bool] = None)

Definition: PullRequestCreateRequest

Attributes

title class-attribute instance-attribute
title: Optional[str] = None

The title of the new pull request.

head class-attribute instance-attribute
head: Optional[str] = None

The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch.

base class-attribute instance-attribute
base: Optional[str] = None

The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.

body class-attribute instance-attribute
body: Optional[str] = None

The contents of the pull request.

maintainer_can_modify class-attribute instance-attribute
maintainer_can_modify: Optional[bool] = None

Indicates whether maintainers can modify the pull request.

draft class-attribute instance-attribute
draft: Optional[bool] = None

Indicates whether the pull request is a draft.

PullRequestMergeRequest dataclass

PullRequestMergeRequest(commit_title: Optional[str] = None, commit_message: Optional[str] = None, sha: Optional[str] = None, merge_method: Optional[str] = None)

Definition: PullRequestMergeRequest

Attributes

commit_title class-attribute instance-attribute
commit_title: Optional[str] = field(default=None, metadata={'wire_name': 'commitTitle'})

Title for the automatic commit message.

commit_message class-attribute instance-attribute
commit_message: Optional[str] = field(default=None, metadata={'wire_name': 'commitMessage'})

Extra detail to append to automatic commit message.

sha class-attribute instance-attribute
sha: Optional[str] = None

SHA that pull request head must match to allow merge.

merge_method class-attribute instance-attribute
merge_method: Optional[str] = field(default=None, metadata={'wire_name': 'mergeMethod'})

Merge method to use. Possible values are merge, squash or rebase. Default is merge.

PullRequestUpdateRequest dataclass

PullRequestUpdateRequest(title: Optional[str] = None, body: Optional[str] = None, state: Optional[str] = None, base: Optional[str] = None, maintainer_can_modify: Optional[bool] = None)

Definition: PullRequestUpdateRequest

Attributes

title class-attribute instance-attribute
title: Optional[str] = None

The title of the pull request.

body class-attribute instance-attribute
body: Optional[str] = None

The contents of the pull request.

state class-attribute instance-attribute
state: Optional[str] = None

State of this Pull Request. Either open or closed.

base class-attribute instance-attribute
base: Optional[str] = None

The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.

maintainer_can_modify class-attribute instance-attribute
maintainer_can_modify: Optional[bool] = None

Indicates whether maintainers can modify the pull request.

Label dataclass

Label(id: Optional[int] = None, node_id: Optional[str] = None, url: Optional[str] = None, name: Optional[str] = None, description: Optional[str] = None, color: Optional[str] = None, default: Optional[bool] = None)

Definition: Label

Attributes

id class-attribute instance-attribute
id: Optional[int] = None

The Unique Identifier for the label.

node_id class-attribute instance-attribute
node_id: Optional[str] = None

The Node ID for the label.

url class-attribute instance-attribute
url: Optional[str] = None

URL for the label

name class-attribute instance-attribute
name: Optional[str] = None

The name of the label.

description class-attribute instance-attribute
description: Optional[str] = None

A brief description of this label.

color class-attribute instance-attribute
color: Optional[str] = None

6-character hex code, without the leading #, identifying the color

default class-attribute instance-attribute
default: Optional[bool] = None

Whether or not this is a default label.

TeamDetails dataclass

TeamDetails(id: Optional[int] = None, node_id: Optional[str] = None, url: Optional[str] = None, members_url: Optional[str] = None, name: Optional[str] = None, description: Optional[str] = None, permission: Optional[str] = None, privacy: Optional[str] = None, html_url: Optional[str] = None, repositories_url: Optional[str] = None, slug: Optional[str] = None, ldap_dn: Optional[str] = None)

Definition: TeamDetails

Attributes

id class-attribute instance-attribute
id: Optional[int] = None

Unique identifier of the team.

node_id class-attribute instance-attribute
node_id: Optional[str] = None

The Node ID for the team.

url class-attribute instance-attribute
url: Optional[str] = None

URL for the team.

members_url class-attribute instance-attribute
members_url: Optional[str] = None

The HTTP URL for the team members.

name class-attribute instance-attribute
name: Optional[str] = None

Name of the team

description class-attribute instance-attribute
description: Optional[str] = None

Description of the team

permission class-attribute instance-attribute
permission: Optional[str] = None

Permission that the team will have for its repositories

privacy class-attribute instance-attribute
privacy: Optional[str] = None

The level of privacy this team should have

html_url class-attribute instance-attribute
html_url: Optional[str] = None

HTML Url of the team.

repositories_url class-attribute instance-attribute
repositories_url: Optional[str] = None

The HTTP URL for this team's repositories.

slug class-attribute instance-attribute
slug: Optional[str] = None

The slug corresponding to the team.

ldap_dn class-attribute instance-attribute
ldap_dn: Optional[str] = None

Distinguished Name (DN) that team maps to within LDAP environment

Link(href: Optional[str] = None)

Definition: Link

WebhookPullRequestResponse dataclass

WebhookPullRequestResponse(action: Optional[str] = None, number: Optional[int] = None, pull_request: Optional[PullRequest] = None)

Definition: WebhookPullRequestResponse

Attributes

action class-attribute instance-attribute
action: Optional[str] = None

The action that was performed.

number class-attribute instance-attribute
number: Optional[int] = None

The pull request number.

WebhookRequestBody dataclass

WebhookRequestBody(active: Optional[bool] = None, name: Optional[str] = None, config: Optional[Dict[str, Any]] = None, events: Optional[List[str]] = None)

Definition: WebhookRequestBody

Attributes

active class-attribute instance-attribute
active: Optional[bool] = None

State of the Trigger, always set to true

name class-attribute instance-attribute
name: Optional[str] = None

Name of the trigger

config class-attribute instance-attribute
config: Optional[Dict[str, Any]] = None

Configuration of the Trigger

events class-attribute instance-attribute
events: Optional[List[str]] = None

Webhook events to listen on

RequestReviewersBody dataclass

RequestReviewersBody(reviewers: Optional[List[str]] = None, team_reviewers: Optional[List[str]] = None)

Definition: RequestReviewersBody

QueryRequest dataclass

QueryRequest(jsonrpc: Optional[str] = None, id: Optional[str] = None, method: Optional[str] = None, params: Optional[Dict[str, Any]] = None, result: Optional[Dict[str, Any]] = None, error: Optional[Dict[str, Any]] = None)

Definition: QueryRequest

GithubClient

GithubClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)

Bases: ConnectorClientBase

Typed client for github connector.

Initialize a GithubClient.

Parameters:

Name Type Description Default
connection_runtime_url str

The connection runtime URL from Azure Portal.

required
token_provider Optional[TokenProvider]

Optional token provider. Defaults to ManagedIdentityTokenProvider.

None
options Optional[ConnectorClientOptions]

Optional connector client options.

None

Methods:

create_issue_async async
create_issue_async(input: IssueBasicDetailsModel, repository_owner: str, repository_name: str) -> dict[str, Any] | None

Create an issue

This operation is used to create a new issue for a specific repository.

get_issues_async async
get_issues_async(repository_owner: str, repository_name: str, milestone: Optional[str] = None, state: Optional[str] = None, assignee: Optional[str] = None, creator: Optional[str] = None, mentioned: Optional[str] = None, labels: Optional[str] = None, sort: Optional[str] = None, direction: Optional[str] = None, since: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Get all issues of a repository

Get all issues of a repository.

get_repository_public_key_async async
get_repository_public_key_async(repository_owner: str, repository_name: str) -> dict[str, Any] | None

Get a repository public key

Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets.

create_update_repository_secret_async async
create_update_repository_secret_async(input: CreateRepositorySecretRequest, repository_owner: str, repository_name: str, secret_name: str) -> None

Create or update a repository secret

Creates or updates a repository secret with an encrypted value. Encrypt your secret using LibSodium.

create_repository_using_template_async async
create_repository_using_template_async(input: CreateRepositoryUsingTemplateRequest, template_owner: str, template_repository: str) -> dict[str, Any] | None

Create a repository using a template

Creates a new repository using a repository template. The authenticated user must own or be a member of an organization that owns the repository.

get_repository_by_id_async async
get_repository_by_id_async(repository_id: int) -> dict[str, Any] | None

Get a repository by Id

Gets a repository by Id.

create_reference_async async
create_reference_async(input: CreateReferenceRequest, repository_owner: str, repository_name: str) -> dict[str, Any] | None

Create a reference

Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches.

get_reference_async async
get_reference_async(repository_owner: str, repository_name: str, reference: str) -> dict[str, Any] | None

Get a reference

Returns a single reference from your Git database. The reference parameter must be formatted as heads/<branch name> for branches and tags/<tag name> for tags. If the reference doesn't match an existing ref, a 404 is returned.

merge_pull_request_async async
merge_pull_request_async(input: PullRequestMergeRequest, repository_owner: str, repository_name: str, pull_number: int) -> dict[str, Any] | None

Merge a pull request

This operation is used to merge a pull request for the repository.

get_pull_request_async async
get_pull_request_async(repository_owner: str, repository_name: str, pull_number: int) -> dict[str, Any] | None

Get a pull request

This operation is used to get a pull request for the repository.

update_pull_request_async async
update_pull_request_async(input: PullRequestUpdateRequest, repository_owner: str, repository_name: str, pull_number: int) -> dict[str, Any] | None

Update a pull request

This operation is used to update a pull request for the repository. To update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.

get_pull_request_files_async async
get_pull_request_files_async(repository_owner: str, repository_name: str, pull_number: int) -> dict[str, Any] | None

Get the list of files from a pull request

This operation is used to get the list of files from a pull request for the repository.

request_reviewers_pull_request_async async
request_reviewers_pull_request_async(input: RequestReviewersBody, repository_owner: str, repository_name: str, pull_number: int) -> None

Request reviewers for a pull request

Requests reviews for a pull request from a given set of users and/or teams.

remove_reviewers_pull_request_async async
remove_reviewers_pull_request_async(input: RequestReviewersBody, repository_owner: str, repository_name: str, pull_number: int) -> None

Remove requested reviewers from a pull request

Remove requested reviewers from a pull request from a given set of users and/or teams.

create_pull_request_async async
create_pull_request_async(input: PullRequestCreateRequest, repository_owner: str, repository_name: str) -> dict[str, Any] | None

Create a pull request

This operation is to create a pull request in a repository. To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to create a pull request.

get_pull_requests_async async
get_pull_requests_async(repository_owner: str, repository_name: str, state: Optional[str] = None, head: Optional[str] = None, base: Optional[str] = None, sort: Optional[str] = None, direction: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Get all Pull Requests of A Repository

Get all Pull Requests of A Repository.

create_repository_dispatch_event_async async
create_repository_dispatch_event_async(input: RepositoryDispatchEvent, repository_owner: str, repository_name: str) -> None

Create a repository dispatch event

This operation is to trigger a webhook event called repository_dispatch when you want activity that happens outside of GitHub to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the repository_dispatch event occurs.

compare_repository_commits_async async
compare_repository_commits_async(repository_owner: str, repository_name: str, base: str, head: str) -> dict[str, Any] | None

Compare two commits

Both base and head must be branch names in repositoryName. To compare branches across other repositories in the same network as repositoryName, use the format <USERNAME>:branch. The response is equivalent to running the git log base..head command; however, commits are returned in chronological order.

add_selected_repo_to_org_secret_async async
add_selected_repo_to_org_secret_async(repository_owner: str, repository_id: int, secret_name: str) -> None

Add selected repository to an organization secret

Adds a repository to an organization secret when the visibility for repository access is set to selected. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the secrets organization permission to use this endpoint.

remove_selected_repo_from_org_secret_async async
remove_selected_repo_from_org_secret_async(repository_owner: str, repository_id: int, secret_name: str) -> None

Remove selected repository from an organization secret

Removes a repository from an organization secret when the visibility for repository access is set to selected. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the secrets organization permission to use this endpoint.

delete_webhook_trigger_async async
delete_webhook_trigger_async(repository_owner: str, repository_name: str, webhook_id: str) -> None

Deletes a GitHub Webhook

Deletes a GitHub Webhook

get_issue_num_async async
get_issue_num_async(repository_owner: str, repository_name: str, issue_number: int) -> dict[str, Any] | None

Get a particular issue of a repository

Get a particular issue of a repository.

update_issue_num_async async
update_issue_num_async(input: IssueUpdateModel, repository_owner: str, repository_name: str, issue_number: int) -> dict[str, Any] | None

Update an Issue

Update an existing issue given the issue number.

update_milestone_async async
update_milestone_async(input: MilestoneUpdateModel, repository_owner: str, repository_name: str, milestone_number: int) -> dict[str, Any] | None

Update a milestone

Update an existing milestone.

get_user_async async
get_user_async() -> dict[str, Any] | None

Get the authenticated user

Get the authenticated user.

search_github_with_query_async async
search_github_with_query_async(input: GraphQlQuery) -> None

Search Github using Query

Search Github using Query

get_assignees_async async
get_assignees_async(repository_owner: str, repository_name: str, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Lists the available assignees for issues in a repository

Lists the available assignees for issues in a repository.

list_collaborators_async async
list_collaborators_async(repository_owner: str, repository_name: str, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

List repository collaborators

List repository collaborators.

check_collaborator_async async
check_collaborator_async(repository_owner: str, repository_name: str, user_name: str) -> dict[str, Any] | None

Check if a user is a repository collaborator

Check if a user is a repository collaborator.

get_milestones_async async
get_milestones_async(repository_owner: str, repository_name: str, state: Optional[str] = None, sort: Optional[str] = None, direction: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Lists all milestones of a repository

Lists all milestones of a repository.

get_labels_async async
get_labels_async(repository_owner: str, repository_name: str, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Lists all labels for a repository

Lists all labels for a repository.

get_issue_labels_async async
get_issue_labels_async(repository_owner: str, repository_name: str, issue_number: int, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Lists all labels for an issue

Lists all labels for an issue.

get_repos_async async
get_repos_async(repository_owner: str, type_: Optional[str] = None, sort: Optional[str] = None, direction: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Lists all public repositories for a user

Lists all public repositories for a user.

get_org_repos_async async
get_org_repos_async(repository_owner: str, type_: Optional[str] = None, sort: Optional[str] = None, direction: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Lists all public repositories for an organization

Lists all public repositories for an organization.

get_user_repos_async async
get_user_repos_async(visibility: Optional[str] = None, affiliation: Optional[str] = None, since: Optional[str] = None, before: Optional[str] = None, type_: Optional[str] = None, sort: Optional[str] = None, direction: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Lists all repositories for the authenticated user

Lists all repositories (both public and private) for the authenticated user.

search_issues_async async
search_issues_async(q: str, sort: Optional[str] = None, order: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None) -> dict[str, Any] | None

Find issues by state and keyword

Find issues by state and keyword.

invoke_mcp_server_async async
invoke_mcp_server_async(input: QueryRequest) -> None

Github MCP Server

Github MCP Server