Skip to content

GithubClient

Attributes

MultipleFetchModel module-attribute

MultipleFetchModel = List['GeneralAPIModel | Mapping[str, Any]']

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: str, *, body: Optional[str] = None, assignee: Optional[UserDetailsModel | Mapping[str, Any]] = 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 instance-attribute
title: str

Summary of the issue.

body class-attribute instance-attribute
body: Optional[str] = dataclass_field(default=None, kw_only=True)

Description of the issue.

number class-attribute instance-attribute
number: Optional[int] = dataclass_field(default=None, kw_only=True)

Unique id of the issue.

state class-attribute instance-attribute
state: Optional[str] = dataclass_field(default=None, kw_only=True)

Status of the issue.

created_at class-attribute instance-attribute
created_at: Optional[str] = dataclass_field(default=None, kw_only=True)

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

repository_url class-attribute instance-attribute
repository_url: Optional[str] = dataclass_field(default=None, kw_only=True)

Web link to the repository.

ActionsPublicKey dataclass

ActionsPublicKey(key_id: str, key: str, *, 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 instance-attribute
key_id: str

The identifier for the key.

key instance-attribute
key: str

The Base64 encoded public key.

id class-attribute instance-attribute
id: Optional[int] = dataclass_field(default=None, kw_only=True)

Unique identifier of the key.

url class-attribute instance-attribute
url: Optional[str] = dataclass_field(default=None, kw_only=True)

Public key url.

title class-attribute instance-attribute
title: Optional[str] = dataclass_field(default=None, kw_only=True)

Public key title.

created_at class-attribute instance-attribute
created_at: Optional[str] = dataclass_field(default=None, kw_only=True)

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 | Mapping[str, Any]] = None, forks: Optional[int] = None, permissions: Optional[Dict[str, Any]] = None, owner: Optional[UserDetailsModel | Mapping[str, Any]] = 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] = dataclass_field(default=None, kw_only=True)

Unique identifier of the repository.

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

The Node Id of the repository.

name class-attribute instance-attribute
name: Optional[str] = dataclass_field(default=None, kw_only=True)

The name of the repository.

full_name class-attribute instance-attribute
full_name: Optional[str] = dataclass_field(default=None, kw_only=True)

The full name of the repository.

forks class-attribute instance-attribute
forks: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of forks of the repository.

permissions class-attribute instance-attribute
permissions: Optional[Dict[str, Any]] = dataclass_field(default=None, kw_only=True)

Permissions on the repository.

private class-attribute instance-attribute
private: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether the repository is private or public.

html_url class-attribute instance-attribute
html_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Html Url of the repository

description class-attribute instance-attribute
description: Optional[str] = dataclass_field(default=None, kw_only=True)

The description of the repository

fork class-attribute instance-attribute
fork: Optional[bool] = dataclass_field(default=None, kw_only=True)

If the repository is a fork?

url class-attribute instance-attribute
url: Optional[str] = dataclass_field(default=None, kw_only=True)

The HTTP URL for this repository

archive_url class-attribute instance-attribute
archive_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Archive URL for this repository

assignees_url class-attribute instance-attribute
assignees_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Assignees URL for this repository

blobs_url class-attribute instance-attribute
blobs_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Blobs URL for this repository

branches_url class-attribute instance-attribute
branches_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Branches URL for this repository

collaborators_url class-attribute instance-attribute
collaborators_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Collaborators URL for this repository

comments_url class-attribute instance-attribute
comments_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Comments URL for this repository

commits_url class-attribute instance-attribute
commits_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Commits URL for this repository

compare_url class-attribute instance-attribute
compare_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Compare URL for this repository

contents_url class-attribute instance-attribute
contents_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Contents URL for this repository

contributors_url class-attribute instance-attribute
contributors_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Contributors URL for this repository

deployments_url class-attribute instance-attribute
deployments_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Deployments URL for this repository

downloads_url class-attribute instance-attribute
downloads_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Downloads URL for this repository

events_url class-attribute instance-attribute
events_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Events URL for this repository

forks_url class-attribute instance-attribute
forks_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Forks URL for this repository

git_commits_url class-attribute instance-attribute
git_commits_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Git Commits URL for this repository

git_refs_url class-attribute instance-attribute
git_refs_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Git References URL for this repository

git_tags_url class-attribute instance-attribute
git_tags_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Git Tags URL for this repository

git_url class-attribute instance-attribute
git_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Git URL for this repository

issue_comment_url class-attribute instance-attribute
issue_comment_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The issue comment URL for this repository

issue_events_url class-attribute instance-attribute
issue_events_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The issue events URL for this repository

issues_url class-attribute instance-attribute
issues_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The issues URL for this repository

keys_url class-attribute instance-attribute
keys_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The keys URL for this repository

labels_url class-attribute instance-attribute
labels_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The labels URL for this repository

languages_url class-attribute instance-attribute
languages_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The languages URL for this repository

merges_url class-attribute instance-attribute
merges_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The merges URL for this repository

milestones_url class-attribute instance-attribute
milestones_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The milestones URL for this repository

notifications_url class-attribute instance-attribute
notifications_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The notifications URL for this repository

pulls_url class-attribute instance-attribute
pulls_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The pulls URL for this repository

releases_url class-attribute instance-attribute
releases_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The releases URL for this repository

ssh_url class-attribute instance-attribute
ssh_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The SSH URL to clone this repository

stargazers_url class-attribute instance-attribute
stargazers_url: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

The statuses URL for this repository

subscribers_url class-attribute instance-attribute
subscribers_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The subscribers URL for this repository

subscription_url class-attribute instance-attribute
subscription_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The subscription URL for this repository

tags_url class-attribute instance-attribute
tags_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The tags URL for this repository

teams_url class-attribute instance-attribute
teams_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The teams URL for this repository

trees_url class-attribute instance-attribute
trees_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The trees URL for this repository

clone_url class-attribute instance-attribute
clone_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The clone URL for this repository

mirror_url class-attribute instance-attribute
mirror_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The original mirror URL for this repository

hooks_url class-attribute instance-attribute
hooks_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The hooks URL for this repository

svn_url class-attribute instance-attribute
svn_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The SVN URL for this repository

homepage class-attribute instance-attribute
homepage: Optional[str] = dataclass_field(default=None, kw_only=True)

The homepage for this repository

language class-attribute instance-attribute
language: Optional[str] = dataclass_field(default=None, kw_only=True)

The language for this repository

forks_count class-attribute instance-attribute
forks_count: Optional[int] = dataclass_field(default=None, kw_only=True)

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

stargazers_count class-attribute instance-attribute
stargazers_count: Optional[int] = dataclass_field(default=None, kw_only=True)

Number of users who have starred the repository.

watchers_count class-attribute instance-attribute
watchers_count: Optional[int] = dataclass_field(default=None, kw_only=True)

Number of users watching the repository.

size class-attribute instance-attribute
size: Optional[int] = dataclass_field(default=None, kw_only=True)

Size of the repository

default_branch class-attribute instance-attribute
default_branch: Optional[str] = dataclass_field(default=None, kw_only=True)

The default branch of the repository.

open_issues_count class-attribute instance-attribute
open_issues_count: Optional[int] = dataclass_field(default=None, kw_only=True)

Number of open issues in the repository.

is_template class-attribute instance-attribute
is_template: Optional[bool] = dataclass_field(default=None, kw_only=True)

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

topics class-attribute instance-attribute
topics: Optional[List[str]] = dataclass_field(default=None, kw_only=True)

List of topics in the repository

has_issues class-attribute instance-attribute
has_issues: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether issues are enabled.

has_projects class-attribute instance-attribute
has_projects: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether projects are enabled.

has_wiki class-attribute instance-attribute
has_wiki: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether the wiki is enabled.

has_pages class-attribute instance-attribute
has_pages: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether pages are enabled.

has_downloads class-attribute instance-attribute
has_downloads: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether downloads are enabled.

archived class-attribute instance-attribute
archived: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether the repository is archived.

disabled class-attribute instance-attribute
disabled: Optional[bool] = dataclass_field(default=None, kw_only=True)

Returns whether or not this repository disabled.

visibility class-attribute instance-attribute
visibility: Optional[str] = dataclass_field(default=None, kw_only=True)

The repository visibility: public, private, or internal.

pushed_at class-attribute instance-attribute
pushed_at: Optional[str] = dataclass_field(default=None, kw_only=True)

When the repository was last pushed to.

created_at class-attribute instance-attribute
created_at: Optional[str] = dataclass_field(default=None, kw_only=True)

the date and time when the repository was created.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = dataclass_field(default=None, kw_only=True)

the date and time when the repository was last updated.

allow_rebase_merge class-attribute instance-attribute
allow_rebase_merge: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether to allow rebase merges for pull requests.

temp_clone_token class-attribute instance-attribute
temp_clone_token: Optional[str] = dataclass_field(default=None, kw_only=True)

Temporary authentication token for cloning this repository.

allow_squash_merge class-attribute instance-attribute
allow_squash_merge: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether to allow squash merges for pull requests.

delete_branch_on_merge class-attribute instance-attribute
delete_branch_on_merge: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether to delete head branches when pull requests are merged

allow_merge_commit class-attribute instance-attribute
allow_merge_commit: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether to allow merge commits for pull requests.

subscribers_count class-attribute instance-attribute
subscribers_count: Optional[int] = dataclass_field(default=None, kw_only=True)

Number of subscribers for the repository.

network_count class-attribute instance-attribute
network_count: Optional[int] = dataclass_field(default=None, kw_only=True)

Repository Network Count

open_issues class-attribute instance-attribute
open_issues: Optional[int] = dataclass_field(default=None, kw_only=True)

Repository open issues.

watchers class-attribute instance-attribute
watchers: Optional[int] = dataclass_field(default=None, kw_only=True)

Repository Watchers.

master_branch class-attribute instance-attribute
master_branch: Optional[str] = dataclass_field(default=None, kw_only=True)

Repository master branch.

starred_at class-attribute instance-attribute
starred_at: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

The name of the fully qualified reference.

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

The Node Id of the reference.

url class-attribute instance-attribute
url: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

SHA for the merge commit.

merged class-attribute instance-attribute
merged: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether or not the pull request was merged.

message class-attribute instance-attribute
message: Optional[str] = dataclass_field(default=None, kw_only=True)

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 | Mapping[str, Any]] = None, body: Optional[str] = None, labels: Optional[List[Label | Mapping[str, Any]]] = None, milestone: Optional[Milestone | Mapping[str, Any]] = 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 | Mapping[str, Any]] = None, assignees: Optional[List[UserDetailsModel | Mapping[str, Any]]] = None, requested_reviewers: Optional[List[UserDetailsModel | Mapping[str, Any]]] = None, requested_teams: Optional[List[TeamDetails | Mapping[str, Any]]] = 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 | Mapping[str, Any]] = 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] = dataclass_field(default=None, kw_only=True)

The HTTP URL for this pull request.

id class-attribute instance-attribute
id: Optional[int] = dataclass_field(default=None, kw_only=True)

The Unique Identifier for the pull request.

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

The Node ID for the pull request.

html_url class-attribute instance-attribute
html_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The HTML URL for the pull request.

diff_url class-attribute instance-attribute
diff_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Diff URL for the pull request.

patch_url class-attribute instance-attribute
patch_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The patch URL for the pull request.

issue_url class-attribute instance-attribute
issue_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The issue URL for the pull request.

commits_url class-attribute instance-attribute
commits_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The commit URL for the pull request.

review_comments_url class-attribute instance-attribute
review_comments_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The review comments URL for the pull request.

review_comment_url class-attribute instance-attribute
review_comment_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The review comment URL for the pull request.

comments_url class-attribute instance-attribute
comments_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Diff URL for the pull request.

statuses_url class-attribute instance-attribute
statuses_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The statuses URL for the pull request.

number class-attribute instance-attribute
number: Optional[int] = dataclass_field(default=None, kw_only=True)

Number uniquely identifying the pull request within its repository.

state class-attribute instance-attribute
state: Optional[str] = dataclass_field(default=None, kw_only=True)

State of this Pull Request. Either open or closed.

locked class-attribute instance-attribute
locked: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether the pull request is locked or not.

title class-attribute instance-attribute
title: Optional[str] = dataclass_field(default=None, kw_only=True)

The title of the pull request.

body class-attribute instance-attribute
body: Optional[str] = dataclass_field(default=None, kw_only=True)

The body as Markdown.

labels class-attribute instance-attribute
labels: Optional[List[Label | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

The list of labels associated with the pull request.

active_lock_reason class-attribute instance-attribute
active_lock_reason: Optional[str] = dataclass_field(default=None, kw_only=True)

Reason that the conversation was locked.

created_at class-attribute instance-attribute
created_at: Optional[str] = dataclass_field(default=None, kw_only=True)

The date and time when the pull request was created.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = dataclass_field(default=None, kw_only=True)

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

closed_at class-attribute instance-attribute
closed_at: Optional[str] = dataclass_field(default=None, kw_only=True)

The date and time when the pull request was closed.

merged_at class-attribute instance-attribute
merged_at: Optional[str] = dataclass_field(default=None, kw_only=True)

The date and time that the pull request was merged.

merge_commit_sha class-attribute instance-attribute
merge_commit_sha: Optional[str] = dataclass_field(default=None, kw_only=True)

The merge commit Sha of the pull request.

assignees class-attribute instance-attribute
assignees: Optional[List[UserDetailsModel | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

The list of assignees for the pull request.

requested_reviewers class-attribute instance-attribute
requested_reviewers: Optional[List[UserDetailsModel | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

The list of Users assigned to this pull request.

requested_teams class-attribute instance-attribute
requested_teams: Optional[List[TeamDetails | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

The list of requested teams to this pull request.

head class-attribute instance-attribute
head: Optional[Dict[str, Any]] = dataclass_field(default=None, kw_only=True)

Head

base class-attribute instance-attribute
base: Optional[Dict[str, Any]] = dataclass_field(default=None, kw_only=True)

Base

author_association class-attribute instance-attribute
author_association: Optional[str] = dataclass_field(default=None, kw_only=True)

Author's association with the subject of the comment.

draft class-attribute instance-attribute
draft: Optional[bool] = dataclass_field(default=None, kw_only=True)

Indicates whether or not the pull request is a draft.

merged class-attribute instance-attribute
merged: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether or not the pull request was merged.

mergeable class-attribute instance-attribute
mergeable: Optional[bool] = dataclass_field(default=None, kw_only=True)

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

rebaseable class-attribute instance-attribute
rebaseable: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether or not the pull request is rebaseable.

mergeable_state class-attribute instance-attribute
mergeable_state: Optional[str] = dataclass_field(default=None, kw_only=True)

The mergeable state of the pull request.

comments class-attribute instance-attribute
comments: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of comments in this pull request.

review_comments class-attribute instance-attribute
review_comments: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of review comments in this pull request.

maintainer_can_modify class-attribute instance-attribute
maintainer_can_modify: Optional[bool] = dataclass_field(default=None, kw_only=True)

Indicates whether maintainers can modify the pull request.

commits class-attribute instance-attribute
commits: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of commits in this pull request.

additions class-attribute instance-attribute
additions: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of additions in this pull request.

deletions class-attribute instance-attribute
deletions: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of deletions in this pull request.

changed_files class-attribute instance-attribute
changed_files: Optional[int] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

The sha for the file.

filename class-attribute instance-attribute
filename: Optional[str] = dataclass_field(default=None, kw_only=True)

The file name.

status class-attribute instance-attribute
status: Optional[str] = dataclass_field(default=None, kw_only=True)

The modification status for the file.

additions class-attribute instance-attribute
additions: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of additions made to the file.

deletions class-attribute instance-attribute
deletions: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of deletions made to the file.

changes class-attribute instance-attribute
changes: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of changes made to the file.

blob_url class-attribute instance-attribute
blob_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The blob Url for the file.

raw_url class-attribute instance-attribute
raw_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The Raw Url for the file.

contents_url class-attribute instance-attribute
contents_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The contents Url for the file.

patch class-attribute instance-attribute
patch: Optional[str] = dataclass_field(default=None, kw_only=True)

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 | Mapping[str, Any]] = None, merge_base_commit: Optional[Commit | Mapping[str, Any]] = None, status: Optional[str] = None, ahead_by: Optional[int] = None, behind_by: Optional[int] = None, total_commits: Optional[int] = None, commits: Optional[List[Commit | Mapping[str, Any]]] = None, files: Optional[List[DiffEntry | Mapping[str, Any]]] = None)

Response for Compare two commits

Attributes

url class-attribute instance-attribute
url: Optional[str] = dataclass_field(default=None, kw_only=True)

Url for the comparison

html_url class-attribute instance-attribute
html_url: Optional[str] = dataclass_field(default=None, kw_only=True)

Html Url for the comparison

permalink_url: Optional[str] = dataclass_field(default=None, kw_only=True)

Permanent Url for the comparison

diff_url class-attribute instance-attribute
diff_url: Optional[str] = dataclass_field(default=None, kw_only=True)

Diff Url

patch_url class-attribute instance-attribute
patch_url: Optional[str] = dataclass_field(default=None, kw_only=True)

Patch Url

status class-attribute instance-attribute
status: Optional[str] = dataclass_field(default=None, kw_only=True)

Status of the comparision eg. diverged etc.,

ahead_by class-attribute instance-attribute
ahead_by: Optional[int] = dataclass_field(default=None, kw_only=True)

ahead by base branch

behind_by class-attribute instance-attribute
behind_by: Optional[int] = dataclass_field(default=None, kw_only=True)

behind_by base branch

total_commits class-attribute instance-attribute
total_commits: Optional[int] = dataclass_field(default=None, kw_only=True)

total commits

commits class-attribute instance-attribute
commits: Optional[List[Commit | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

commits

files class-attribute instance-attribute
files: Optional[List[DiffEntry | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

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 | Mapping[str, Any]] = 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] = dataclass_field(default=None, kw_only=True)

The HTTP URL for the milestone.

html_url class-attribute instance-attribute
html_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The HTML URL for the milestone.

labels_url class-attribute instance-attribute
labels_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The labels URL for the milestone.

id class-attribute instance-attribute
id: Optional[int] = dataclass_field(default=None, kw_only=True)

The Unique Identifier for the milestone.

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

The Node ID for the milestone.

number class-attribute instance-attribute
number: Optional[int] = dataclass_field(default=None, kw_only=True)

The number of the milestone.

state class-attribute instance-attribute
state: Optional[str] = dataclass_field(default=None, kw_only=True)

The state of the milestone.

title class-attribute instance-attribute
title: Optional[str] = dataclass_field(default=None, kw_only=True)

The title of the milestone.

description class-attribute instance-attribute
description: Optional[str] = dataclass_field(default=None, kw_only=True)

The description of the milestone.

open_issues class-attribute instance-attribute
open_issues: Optional[int] = dataclass_field(default=None, kw_only=True)

Number of open issues for the repository.

closed_issues class-attribute instance-attribute
closed_issues: Optional[int] = dataclass_field(default=None, kw_only=True)

Number of closed issues for the repository.

created_at class-attribute instance-attribute
created_at: Optional[str] = dataclass_field(default=None, kw_only=True)

The date and time when the milestone was created.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = dataclass_field(default=None, kw_only=True)

The date and time when the milestone was last updated.

closed_at class-attribute instance-attribute
closed_at: Optional[str] = dataclass_field(default=None, kw_only=True)

The date and time when the milestone was closed.

due_on class-attribute instance-attribute
due_on: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

User Login.

id class-attribute instance-attribute
id: Optional[int] = dataclass_field(default=None, kw_only=True)

User Id.

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

User Node Id.

avatar_url class-attribute instance-attribute
avatar_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Avatar Url.

gravatar_id class-attribute instance-attribute
gravatar_id: Optional[str] = dataclass_field(default=None, kw_only=True)

User Gravatar Id.

url class-attribute instance-attribute
url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Url.

html_url class-attribute instance-attribute
html_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Html Url.

followers_url class-attribute instance-attribute
followers_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User FollowersUrl

following_url class-attribute instance-attribute
following_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Following Url.

gists_url class-attribute instance-attribute
gists_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Gists Url.

starred_url class-attribute instance-attribute
starred_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Starred Url.

subscriptions_url class-attribute instance-attribute
subscriptions_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Subscriptions Url.

organizations_url class-attribute instance-attribute
organizations_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Organizations Url.

repos_url class-attribute instance-attribute
repos_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Repos Url.

events_url class-attribute instance-attribute
events_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Events Url.

received_events_url class-attribute instance-attribute
received_events_url: Optional[str] = dataclass_field(default=None, kw_only=True)

User Received Events Url.

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

User Type.

site_admin class-attribute instance-attribute
site_admin: Optional[bool] = dataclass_field(default=None, kw_only=True)

Is User Site Admin?

name class-attribute instance-attribute
name: Optional[str] = dataclass_field(default=None, kw_only=True)

User Name.

company class-attribute instance-attribute
company: Optional[str] = dataclass_field(default=None, kw_only=True)

User Company.

blog class-attribute instance-attribute
blog: Optional[str] = dataclass_field(default=None, kw_only=True)

User Blog.

location class-attribute instance-attribute
location: Optional[str] = dataclass_field(default=None, kw_only=True)

User Location.

email class-attribute instance-attribute
email: Optional[str] = dataclass_field(default=None, kw_only=True)

User Email.

hireable class-attribute instance-attribute
hireable: Optional[bool] = dataclass_field(default=None, kw_only=True)

User Hireable?

bio class-attribute instance-attribute
bio: Optional[str] = dataclass_field(default=None, kw_only=True)

User Bio.

public_repos class-attribute instance-attribute
public_repos: Optional[int] = dataclass_field(default=None, kw_only=True)

User Public Repos.

public_gists class-attribute instance-attribute
public_gists: Optional[int] = dataclass_field(default=None, kw_only=True)

User Public Gists.

followers class-attribute instance-attribute
followers: Optional[int] = dataclass_field(default=None, kw_only=True)

User Followers.

following class-attribute instance-attribute
following: Optional[int] = dataclass_field(default=None, kw_only=True)

User Following.

created_at class-attribute instance-attribute
created_at: Optional[str] = dataclass_field(default=None, kw_only=True)

User Created At.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default_factory=dict, kw_only=True)

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

MultipleSearchFetchModel dataclass

MultipleSearchFetchModel(*, body: Optional[List[GeneralAPIModel | Mapping[str, Any]]] = None)

Response for Find issues by state and keyword

Attributes

body class-attribute instance-attribute
body: Optional[List[GeneralAPIModel | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

body of result

IssueBasicDetailsModel dataclass

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

Definition: IssueBasicDetailsModel

Attributes

title instance-attribute
title: str

Summary of the issue.

body class-attribute instance-attribute
body: Optional[str] = dataclass_field(default=None, kw_only=True)

Description of the issue.

SingleSearchFetchModel dataclass

SingleSearchFetchModel(*, body: Optional[List[GeneralAPIModel | Mapping[str, Any]]] = None)

Definition: SingleSearchFetchModel

Attributes

body class-attribute instance-attribute
body: Optional[List[GeneralAPIModel | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

Summary of the issue.

body class-attribute instance-attribute
body: Optional[str] = dataclass_field(default=None, kw_only=True)

Description of the issue.

assignee class-attribute instance-attribute
assignee: Optional[str] = dataclass_field(default=None, kw_only=True)

Assignee of the issue.

state class-attribute instance-attribute
state: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

The reason for change of state.

milestone class-attribute instance-attribute
milestone: Optional[str] = dataclass_field(default=None, kw_only=True)

Number of milestones to associate with issue.

labels class-attribute instance-attribute
labels: Optional[List[str]] = dataclass_field(default=None, kw_only=True)

labels associated with the issue.

assignees class-attribute instance-attribute
assignees: Optional[List[str]] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

Summary of the milestone.

state class-attribute instance-attribute
state: Optional[str] = dataclass_field(default=None, kw_only=True)

The open or close state of the milestone.

description class-attribute instance-attribute
description: Optional[str] = dataclass_field(default=None, kw_only=True)

A description of the milestone.

due_on class-attribute instance-attribute
due_on: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

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

reason class-attribute instance-attribute
reason: Optional[str] = dataclass_field(default=None, kw_only=True)

The reason for verified value.

payload class-attribute instance-attribute
payload: Optional[str] = dataclass_field(default=None, kw_only=True)

The value that was signed.

signature class-attribute instance-attribute
signature: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

User Name

email class-attribute instance-attribute
email: Optional[str] = dataclass_field(default=None, kw_only=True)

Email

date class-attribute instance-attribute
date: Optional[str] = dataclass_field(default=None, kw_only=True)

Timestamp of Commit.

GraphQlQuery dataclass

GraphQlQuery(*, query: Optional[str] = None)

Definition: GraphQlQuery

Attributes

query class-attribute instance-attribute
query: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

Changed File Name.

additions class-attribute instance-attribute
additions: Optional[int] = dataclass_field(default=None, kw_only=True)

Number of additions in the file

deletions class-attribute instance-attribute
deletions: Optional[int] = dataclass_field(default=None, kw_only=True)

Number of Deletions in the file

changes class-attribute instance-attribute
changes: Optional[int] = dataclass_field(default=None, kw_only=True)

Number of Changes in the file

status class-attribute instance-attribute
status: Optional[str] = dataclass_field(default=None, kw_only=True)

Status of the change modified, renamed etc.,

raw_url class-attribute instance-attribute
raw_url: Optional[str] = dataclass_field(default=None, kw_only=True)

Raw Url link to the file

blob_url class-attribute instance-attribute
blob_url: Optional[str] = dataclass_field(default=None, kw_only=True)

Blob Url link to the file

patch class-attribute instance-attribute
patch: Optional[str] = dataclass_field(default=None, kw_only=True)

Actual changes made to the file.

sha class-attribute instance-attribute
sha: Optional[str] = dataclass_field(default=None, kw_only=True)

SHA of the change.

contents_url class-attribute instance-attribute
contents_url: Optional[str] = dataclass_field(default=None, kw_only=True)

File Contents Url.

previous_filename class-attribute instance-attribute
previous_filename: Optional[str] = dataclass_field(default=None, kw_only=True)

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 | Mapping[str, Any]] = None, committer: Optional[UserDetailsModel | Mapping[str, Any]] = None, parents: Optional[List[Dict[str, Any]]] = None, stats: Optional[Dict[str, Any]] = None, files: Optional[List[DiffEntry | Mapping[str, Any]]] = None)

Definition: Commit

Attributes

url class-attribute instance-attribute
url: Optional[str] = dataclass_field(default=None, kw_only=True)

The HTTP URL for the commit.

sha class-attribute instance-attribute
sha: Optional[str] = dataclass_field(default=None, kw_only=True)

SHA of the commit

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

Node Id of the commit.

html_url class-attribute instance-attribute
html_url: Optional[str] = dataclass_field(default=None, kw_only=True)

HTML Url of the commit

comments_url class-attribute instance-attribute
comments_url: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

A custom webhook event name.

client_payload class-attribute instance-attribute
client_payload: Optional[Dict[str, Any]] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

ID of the key you used to encrypt the secret.

CreateRepositoryUsingTemplateRequest dataclass

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

Definition: CreateRepositoryUsingTemplateRequest

Attributes

owner class-attribute instance-attribute
owner: Optional[str] = dataclass_field(default=None, kw_only=True)

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

name instance-attribute
name: str

The name of the new repository.

description class-attribute instance-attribute
description: Optional[str] = dataclass_field(default=None, kw_only=True)

A short description of the new repository.

private class-attribute instance-attribute
private: Optional[bool] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

The lowercased SPDX Id of the license.

name class-attribute instance-attribute
name: Optional[str] = dataclass_field(default=None, kw_only=True)

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

url class-attribute instance-attribute
url: Optional[str] = dataclass_field(default=None, kw_only=True)

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

spdx_id class-attribute instance-attribute
spdx_id: Optional[str] = dataclass_field(default=None, kw_only=True)

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

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

License Node Id.

html_url class-attribute instance-attribute
html_url: Optional[str] = dataclass_field(default=None, kw_only=True)

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 | Mapping[str, Any]] = 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] = dataclass_field(default=None, kw_only=True)

Unique identifier of the repository.

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

The Node Id of the repository.

name class-attribute instance-attribute
name: Optional[str] = dataclass_field(default=None, kw_only=True)

The name of the repository.

full_name class-attribute instance-attribute
full_name: Optional[str] = dataclass_field(default=None, kw_only=True)

The full name of the repository.

permissions class-attribute instance-attribute
permissions: Optional[Dict[str, Any]] = dataclass_field(default=None, kw_only=True)

Permissions on the repository.

private class-attribute instance-attribute
private: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether the repository is private or public.

description class-attribute instance-attribute
description: Optional[str] = dataclass_field(default=None, kw_only=True)

The description of the repository

homepage class-attribute instance-attribute
homepage: Optional[str] = dataclass_field(default=None, kw_only=True)

The homepage for this repository

language class-attribute instance-attribute
language: Optional[str] = dataclass_field(default=None, kw_only=True)

The language for this repository

archived class-attribute instance-attribute
archived: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether the repository is archived.

disabled class-attribute instance-attribute
disabled: Optional[bool] = dataclass_field(default=None, kw_only=True)

Returns whether or not this repository disabled.

visibility class-attribute instance-attribute
visibility: Optional[str] = dataclass_field(default=None, kw_only=True)

The repository visibility: public, private, or internal.

created_at class-attribute instance-attribute
created_at: Optional[str] = dataclass_field(default=None, kw_only=True)

the date and time when the repository was created.

updated_at class-attribute instance-attribute
updated_at: Optional[str] = dataclass_field(default=None, kw_only=True)

the date and time when the repository was last updated.

allow_rebase_merge class-attribute instance-attribute
allow_rebase_merge: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether to allow rebase merges for pull requests.

allow_squash_merge class-attribute instance-attribute
allow_squash_merge: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether to allow squash merges for pull requests.

delete_branch_on_merge class-attribute instance-attribute
delete_branch_on_merge: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether to delete head branches when pull requests are merged

allow_merge_commit class-attribute instance-attribute
allow_merge_commit: Optional[bool] = dataclass_field(default=None, kw_only=True)

Whether to allow merge commits for pull requests.

master_branch class-attribute instance-attribute
master_branch: Optional[str] = dataclass_field(default=None, kw_only=True)

Repository master branch.

CreateReferenceRequest dataclass

CreateReferenceRequest(ref: str, sha: str)

Definition: CreateReferenceRequest

Attributes

ref instance-attribute
ref: str

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 instance-attribute
sha: str

The SHA1 value for this reference.

PullRequestCreateRequest dataclass

PullRequestCreateRequest(head: str, base: str, *, title: 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] = dataclass_field(default=None, kw_only=True)

The title of the new pull request.

head instance-attribute
head: str

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 instance-attribute
base: str

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] = dataclass_field(default=None, kw_only=True)

The contents of the pull request.

maintainer_can_modify class-attribute instance-attribute
maintainer_can_modify: Optional[bool] = dataclass_field(default=None, kw_only=True)

Indicates whether maintainers can modify the pull request.

draft class-attribute instance-attribute
draft: Optional[bool] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'commitTitle'})

Title for the automatic commit message.

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

Extra detail to append to automatic commit message.

sha class-attribute instance-attribute
sha: Optional[str] = dataclass_field(default=None, kw_only=True)

SHA that pull request head must match to allow merge.

merge_method class-attribute instance-attribute
merge_method: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True)

The title of the pull request.

body class-attribute instance-attribute
body: Optional[str] = dataclass_field(default=None, kw_only=True)

The contents of the pull request.

state class-attribute instance-attribute
state: Optional[str] = dataclass_field(default=None, kw_only=True)

State of this Pull Request. Either open or closed.

base class-attribute instance-attribute
base: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

The Unique Identifier for the label.

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

The Node ID for the label.

url class-attribute instance-attribute
url: Optional[str] = dataclass_field(default=None, kw_only=True)

URL for the label

name class-attribute instance-attribute
name: Optional[str] = dataclass_field(default=None, kw_only=True)

The name of the label.

description class-attribute instance-attribute
description: Optional[str] = dataclass_field(default=None, kw_only=True)

A brief description of this label.

color class-attribute instance-attribute
color: Optional[str] = dataclass_field(default=None, kw_only=True)

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

default class-attribute instance-attribute
default: Optional[bool] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

Unique identifier of the team.

node_id class-attribute instance-attribute
node_id: Optional[str] = dataclass_field(default=None, kw_only=True)

The Node ID for the team.

url class-attribute instance-attribute
url: Optional[str] = dataclass_field(default=None, kw_only=True)

URL for the team.

members_url class-attribute instance-attribute
members_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The HTTP URL for the team members.

name class-attribute instance-attribute
name: Optional[str] = dataclass_field(default=None, kw_only=True)

Name of the team

description class-attribute instance-attribute
description: Optional[str] = dataclass_field(default=None, kw_only=True)

Description of the team

permission class-attribute instance-attribute
permission: Optional[str] = dataclass_field(default=None, kw_only=True)

Permission that the team will have for its repositories

privacy class-attribute instance-attribute
privacy: Optional[str] = dataclass_field(default=None, kw_only=True)

The level of privacy this team should have

html_url class-attribute instance-attribute
html_url: Optional[str] = dataclass_field(default=None, kw_only=True)

HTML Url of the team.

repositories_url class-attribute instance-attribute
repositories_url: Optional[str] = dataclass_field(default=None, kw_only=True)

The HTTP URL for this team's repositories.

slug class-attribute instance-attribute
slug: Optional[str] = dataclass_field(default=None, kw_only=True)

The slug corresponding to the team.

ldap_dn class-attribute instance-attribute
ldap_dn: Optional[str] = dataclass_field(default=None, kw_only=True)

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

Link(href: str)

Definition: Link

WebhookPullRequestResponse dataclass

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

Definition: WebhookPullRequestResponse

Attributes

action class-attribute instance-attribute
action: Optional[str] = dataclass_field(default=None, kw_only=True)

The action that was performed.

number class-attribute instance-attribute
number: Optional[int] = dataclass_field(default=None, kw_only=True)

The pull request number.

WebhookRequestBody dataclass

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

Definition: WebhookRequestBody

Attributes

active instance-attribute
active: bool

State of the Trigger, always set to true

name instance-attribute
name: str

Name of the trigger

config instance-attribute
config: Dict[str, Any]

Configuration of the Trigger

events instance-attribute
events: List[str]

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, credential: AsyncTokenCredential | AzureKeyCredential, *, max_retry_attempts: int = 3, timeout: float = 30.0, use_exponential_backoff: bool = True, initial_retry_delay_seconds: float = 0.5, maximum_retry_delay_seconds: float = 120.0, retry_jitter_factor: float = 0.1, retry_unsafe_http_methods: bool = False, transport: Optional[AsyncHttpTransport] = None, **kwargs: Any)

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
credential AsyncTokenCredential | AzureKeyCredential

Caller-owned Azure Core credential.

required
max_retry_attempts int

The maximum number of request attempts.

3
timeout float

The network timeout in seconds for each request. The value configures Azure Core retry and transport deadlines. Nonpositive values disable SDK and transport deadlines.

30.0
use_exponential_backoff bool

Whether retries use exponential backoff.

True
initial_retry_delay_seconds float

The initial retry delay in seconds.

0.5
maximum_retry_delay_seconds float

The maximum retry delay in seconds.

120.0
retry_jitter_factor float

The jitter fraction applied to retry delays.

0.1
retry_unsafe_http_methods bool

Whether unsafe HTTP methods may be retried.

False
transport Optional[AsyncHttpTransport]

Optional Azure Core async HTTP transport closed by the client through its asynchronous lifecycle.

None
**kwargs Any

Optional Azure Core pipeline policy settings.

{}

Methods:

create_issue async
create_issue(input: IssueBasicDetailsModel | Mapping[str, Any], repository_owner: str, repository_name: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Create an issue

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

Swagger operation ID: CreateIssue.

Parameters:

Name Type Description Default
input IssueBasicDetailsModel | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_issues
list_issues(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, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Get all issues of a repository

Get all issues of a repository.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetIssues.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
milestone Optional[str]

Filter by milestone.

None
state Optional[str]

Filter by state.

None
assignee Optional[str]

Filter by assignee.

None
creator Optional[str]

Filter by creator.

None
mentioned Optional[str]

Filter by mentions.

None
labels Optional[str]

Filter by label names.

None
sort Optional[str]

Field to sort results by.

None
direction Optional[str]

Direction of sort.

None
since Optional[str]

Filter by issues after given date.

None
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to display.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

get_repository_public_key async
get_repository_public_key(repository_owner: str, repository_name: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: GetRepositoryPublicKey.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

create_update_repository_secret async
create_update_repository_secret(input: CreateRepositorySecretRequest | Mapping[str, Any], repository_owner: str, repository_name: str, secret_name: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Create or update a repository secret

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

Swagger operation ID: CreateUpdateRepositorySecret.

Parameters:

Name Type Description Default
input CreateRepositorySecretRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
secret_name str

Name of the secret.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

create_repository_using_template async
create_repository_using_template(input: CreateRepositoryUsingTemplateRequest | Mapping[str, Any], template_owner: str, template_repository: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: CreateRepositoryUsingTemplate.

Parameters:

Name Type Description Default
input CreateRepositoryUsingTemplateRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
template_owner str

Name of the template repository owner.

required
template_repository str

Name of the template repository.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

get_repository_by_id async
get_repository_by_id(repository_id: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Get a repository by Id

Gets a repository by Id.

Swagger operation ID: GetRepositoryById.

Parameters:

Name Type Description Default
repository_id int

Unique Identifier of the repository.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

create_reference async
create_reference(input: CreateReferenceRequest | Mapping[str, Any], repository_owner: str, repository_name: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: CreateReference.

Parameters:

Name Type Description Default
input CreateReferenceRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

get_reference async
get_reference(repository_owner: str, repository_name: str, reference: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: GetReference.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
reference str

The ref in the URL must be formatted as heads/ for branches and tags/ for tags.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

merge_pull_request async
merge_pull_request(input: PullRequestMergeRequest | Mapping[str, Any], repository_owner: str, repository_name: str, pull_number: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Merge a pull request

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

Swagger operation ID: MergePullRequest.

Parameters:

Name Type Description Default
input PullRequestMergeRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
pull_number int

Pull Number.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

get_pull_request async
get_pull_request(repository_owner: str, repository_name: str, pull_number: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Get a pull request

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

Swagger operation ID: GetPullRequest.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
pull_number int

Pull Number.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

update_pull_request async
update_pull_request(input: PullRequestUpdateRequest | Mapping[str, Any], repository_owner: str, repository_name: str, pull_number: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: UpdatePullRequest.

Parameters:

Name Type Description Default
input PullRequestUpdateRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
pull_number int

Pull Number.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_pull_request_files
list_pull_request_files(repository_owner: str, repository_name: str, pull_number: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

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.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetPullRequestFiles.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
pull_number int

Pull Number.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

request_reviewers_pull_request async
request_reviewers_pull_request(input: RequestReviewersBody | Mapping[str, Any], repository_owner: str, repository_name: str, pull_number: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Request reviewers for a pull request

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

Swagger operation ID: RequestReviewersPullRequest.

Parameters:

Name Type Description Default
input RequestReviewersBody | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
pull_number int

Pull Number.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

remove_reviewers_pull_request async
remove_reviewers_pull_request(input: RequestReviewersBody | Mapping[str, Any], repository_owner: str, repository_name: str, pull_number: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Remove requested reviewers from a pull request

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

Swagger operation ID: RemoveReviewersPullRequest.

Parameters:

Name Type Description Default
input RequestReviewersBody | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
pull_number int

Pull Number.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

create_pull_request async
create_pull_request(input: PullRequestCreateRequest | Mapping[str, Any], repository_owner: str, repository_name: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: CreatePullRequest.

Parameters:

Name Type Description Default
input PullRequestCreateRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_pull_requests
list_pull_requests(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, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Get all Pull Requests of A Repository

Get all Pull Requests of A Repository.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetPullRequests.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
state Optional[str]

Filter by state.

None
head Optional[str]

Filter by head user or organization.

None
base Optional[str]

Filter by base branch name.

None
sort Optional[str]

What to sort the results by.

None
direction Optional[str]

Direction of sort.

None
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to display.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

create_repository_dispatch_event async
create_repository_dispatch_event(input: RepositoryDispatchEvent | Mapping[str, Any], repository_owner: str, repository_name: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: CreateRepositoryDispatchEvent.

Parameters:

Name Type Description Default
input RepositoryDispatchEvent | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

compare_repository_commits async
compare_repository_commits(repository_owner: str, repository_name: str, base: str, head: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: CompareRepositoryCommits.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
base str

base parameter.

required
head str

head parameter.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

add_selected_repo_to_org_secret async
add_selected_repo_to_org_secret(repository_owner: str, repository_id: int, secret_name: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: AddSelectedRepoToOrgSecret.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_id int

Unique Identifier of the repository.

required
secret_name str

Name of the secret.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

remove_selected_repo_from_org_secret async
remove_selected_repo_from_org_secret(repository_owner: str, repository_id: int, secret_name: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> 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.

Swagger operation ID: RemoveSelectedRepoFromOrgSecret.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_id int

Unique Identifier of the repository.

required
secret_name str

Name of the secret.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

delete_webhook_trigger async
delete_webhook_trigger(repository_owner: str, repository_name: str, webhook_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Deletes a GitHub Webhook

Deletes a GitHub Webhook

Swagger operation ID: DeleteWebhookTrigger.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
webhook_id str

ID of the GitHub Webhook.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

get_issue_num async
get_issue_num(repository_owner: str, repository_name: str, issue_number: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Get a particular issue of a repository

Get a particular issue of a repository.

Swagger operation ID: GetIssueNum.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
issue_number int

Issue Number for a given issue.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

update_issue_num async
update_issue_num(input: IssueUpdateModel | Mapping[str, Any], repository_owner: str, repository_name: str, issue_number: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Update an Issue

Update an existing issue given the issue number.

Swagger operation ID: UpdateIssueNum.

Parameters:

Name Type Description Default
input IssueUpdateModel | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
issue_number int

Issue Number for a given issue.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

update_milestone async
update_milestone(input: MilestoneUpdateModel | Mapping[str, Any], repository_owner: str, repository_name: str, milestone_number: int, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Update a milestone

Update an existing milestone.

Swagger operation ID: UpdateMilestone.

Parameters:

Name Type Description Default
input MilestoneUpdateModel | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
milestone_number int

Milestone number for a given milestone.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

get_user async
get_user(*, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Get the authenticated user

Get the authenticated user.

Swagger operation ID: GetUser.

Parameters:

Name Type Description Default
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

search_github_with_query async
search_github_with_query(input: GraphQlQuery | Mapping[str, Any], *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Search Github using Query

Search Github using Query

Swagger operation ID: SearchGithubWithQuery.

Parameters:

Name Type Description Default
input GraphQlQuery | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_assignees
list_assignees(repository_owner: str, repository_name: str, *, per_page: Optional[int] = None, page: Optional[int] = None, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Lists the available assignees for issues in a repository

Lists the available assignees for issues in a repository.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetAssignees.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to display.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_collaborators
list_collaborators(repository_owner: str, repository_name: str, *, per_page: Optional[int] = None, page: Optional[int] = None, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

List repository collaborators

List repository collaborators.

Returns a single-page Azure Core async collection.

Swagger operation ID: ListCollaborators.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to display.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

check_collaborator async
check_collaborator(repository_owner: str, repository_name: str, user_name: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Check if a user is a repository collaborator

Check if a user is a repository collaborator.

Swagger operation ID: checkCollaborator.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
user_name str

The handle for the GitHub user account.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_milestones
list_milestones(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, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Lists all milestones of a repository

Lists all milestones of a repository.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetMilestones.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
state Optional[str]

State of the milestone.

None
sort Optional[str]

What to sort the results by.

None
direction Optional[str]

Direction of sort.

None
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to display.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_labels
list_labels(repository_owner: str, repository_name: str, *, per_page: Optional[int] = None, page: Optional[int] = None, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Lists all labels for a repository

Lists all labels for a repository.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetLabels.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to display.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_issue_labels
list_issue_labels(repository_owner: str, repository_name: str, issue_number: int, *, per_page: Optional[int] = None, page: Optional[int] = None, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Lists all labels for an issue

Lists all labels for an issue.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetIssueLabels.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
repository_name str

Name of the repository.

required
issue_number int

Issue Number for a given issue.

required
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to display.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_repos
list_repos(repository_owner: str, *, type_: Optional[str] = None, sort: Optional[str] = None, direction: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Lists all public repositories for a user

Lists all public repositories for a user.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetRepos.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
type_ Optional[str]

Limit results to repositories of the specified type.

None
sort Optional[str]

The property to sort the results by.

None
direction Optional[str]

Direction of sort.

None
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to fetch.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_org_repos
list_org_repos(repository_owner: str, *, type_: Optional[str] = None, sort: Optional[str] = None, direction: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Lists all public repositories for an organization

Lists all public repositories for an organization.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetOrgRepos.

Parameters:

Name Type Description Default
repository_owner str

Name of the repository owner.

required
type_ Optional[str]

Limit results to repositories of the specified type.

None
sort Optional[str]

The property to sort the results by.

None
direction Optional[str]

Direction of sort.

None
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to fetch.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_user_repos
list_user_repos(*, 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, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Lists all repositories for the authenticated user

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

Returns a single-page Azure Core async collection.

Swagger operation ID: GetUserRepos.

Parameters:

Name Type Description Default
visibility Optional[str]

Limit results to repositories of the specified visibility(public/private/all).

None
affiliation Optional[str]

Limit results based on affiliation.

None
since Optional[str]

Limit results to repositories updated after a given time.

None
before Optional[str]

Limit results to repositories updated before a given time.

None
type_ Optional[str]

Limit results to repositories of the specified type.

None
sort Optional[str]

The property to sort the results by.

None
direction Optional[str]

Direction of sort.

None
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to fetch.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_search_issues
list_search_issues(q: str, *, sort: Optional[str] = None, order: Optional[str] = None, per_page: Optional[int] = None, page: Optional[int] = None, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Find issues by state and keyword

Find issues by state and keyword.

Returns a single-page Azure Core async collection.

Swagger operation ID: SearchIssues.

Parameters:

Name Type Description Default
q str

Search keywords and qualifiers.

required
sort Optional[str]

The property to sort the results by.

None
order Optional[str]

Direction of sort.

None
per_page Optional[int]

Number of results per page.

None
page Optional[int]

Page number to fetch.

None
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

invoke_mcp_server async
invoke_mcp_server(input: QueryRequest | Mapping[str, Any], *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Github MCP Server

Github MCP Server

Swagger operation ID: InvokeMCPServer.

Parameters:

Name Type Description Default
input QueryRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.