AuthenticatedUser¶
-
class
github.AuthenticatedUser.AuthenticatedUser¶ This class represents AuthenticatedUsers as returned by https://docs.github.com/en/rest/reference/users#get-the-authenticated-user
An AuthenticatedUser object can be created by calling
get_user()on a Github object.-
add_to_emails(*emails: str) → None¶ - Calls
-
add_to_following(following: NamedUser) → None¶
-
add_to_starred(starred: Repository) → None¶
-
add_to_subscriptions(subscription: Repository) → None¶
-
add_to_watched(watched: Repository) → None¶
- Calls
-
static
create_fork(repo: Repository, name: Opt[str] = NotSet, default_branch_only: Opt[bool] = NotSet) → Repository¶
-
create_repo_from_template(name: str, repo: Repository, description: Opt[str] = NotSet, include_all_branches: Opt[bool] = NotSet, private: Opt[bool] = NotSet) → Repository¶
-
create_gist(public: bool, files: dict[str, InputFileContent], description: Opt[str] = NotSet) → Gist¶ - Calls
-
create_key(title: str, key: str) → UserKey¶ - Calls
- Parameters
title – string
key – string
- Return type
-
create_project(name: str, body: Opt[str] = NotSet) → Project¶ - Calls
- Parameters
name – string
body – string
- Return type
-
create_repo(name: str, description: Opt[str] = NotSet, homepage: Opt[str] = NotSet, private: Opt[bool] = NotSet, has_issues: Opt[bool] = NotSet, has_wiki: Opt[bool] = NotSet, has_downloads: Opt[bool] = NotSet, has_projects: Opt[bool] = NotSet, auto_init: Opt[bool] = NotSet, license_template: Opt[str] = NotSet, gitignore_template: Opt[str] = NotSet, allow_squash_merge: Opt[bool] = NotSet, allow_merge_commit: Opt[bool] = NotSet, allow_rebase_merge: Opt[bool] = NotSet, delete_branch_on_merge: Opt[bool] = NotSet) → Repository¶ - Calls
-
edit(name: Union[str, github.GithubObject._NotSetType] = NotSet, email: Union[str, github.GithubObject._NotSetType] = NotSet, blog: Union[str, github.GithubObject._NotSetType] = NotSet, company: Union[str, github.GithubObject._NotSetType] = NotSet, location: Union[str, github.GithubObject._NotSetType] = NotSet, hireable: Union[bool, github.GithubObject._NotSetType] = NotSet, bio: Union[str, github.GithubObject._NotSetType] = NotSet) → None¶ - Calls
- Calls
- Calls
-
get_emails() → list[EmailData]¶ - Calls
-
get_events() → PaginatedList[Event]¶ - Calls
-
get_followers() → PaginatedList[NamedUser]¶ - Calls
-
get_following() → PaginatedList[NamedUser]¶ - Calls
-
get_gists(since: Opt[datetime] = NotSet) → PaginatedList[Gist]¶ - Calls
- Parameters
since – datetime format YYYY-MM-DDTHH:MM:SSZ
- Return type
PaginatedListofgithub.Gist.Gist
-
get_issues(filter: Opt[str] = NotSet, state: Opt[str] = NotSet, labels: Opt[list[Label]] = NotSet, sort: Opt[str] = NotSet, direction: Opt[str] = NotSet, since: Opt[datetime] = NotSet) → PaginatedList[Issue]¶ - Calls
-
get_user_issues(filter: Opt[str] = NotSet, state: Opt[str] = NotSet, labels: Opt[list[Label]] = NotSet, sort: Opt[str] = NotSet, direction: Opt[str] = NotSet, since: Opt[datetime] = NotSet) → PaginatedList[Issue]¶ - Calls
-
get_key(id: int) → UserKey¶ - Calls
-
get_keys() → PaginatedList[UserKey]¶ - Calls
-
get_notification(id: str) → Notification¶
-
get_notifications(all: Opt[bool] = NotSet, participating: Opt[bool] = NotSet, since: Opt[datetime] = NotSet, before: Opt[datetime] = NotSet) → PaginatedList[Notification]¶ - Calls
-
get_organization_events(org: Organization) → PaginatedList[Event]¶
-
get_orgs() → PaginatedList[Organization]¶ - Calls
-
get_repo(name: str) → Repository¶
-
get_repos(visibility: Opt[str] = NotSet, affiliation: Opt[str] = NotSet, type: Opt[str] = NotSet, sort: Opt[str] = NotSet, direction: Opt[str] = NotSet) → PaginatedList[Repository]¶ - Calls
-
get_starred() → PaginatedList[Repository]¶ - Calls
-
get_starred_gists() → PaginatedList[Gist]¶ - Calls
-
get_subscriptions() → PaginatedList[Repository]¶ - Calls
-
get_teams() → PaginatedList[Team]¶ - Calls
-
get_watched() → PaginatedList[Repository]¶ - Calls
-
get_installations() → PaginatedList[Installation]¶ - Calls
-
has_in_following(following: NamedUser) → bool¶
-
has_in_starred(starred: Repository) → bool¶
-
has_in_subscriptions(subscription: Repository) → bool¶
-
has_in_watched(watched: Repository) → bool¶
-
mark_notifications_as_read(last_read_at: datetime | None = None) → None¶ - Calls
-
remove_from_emails(*emails: str) → None¶ - Calls
-
remove_from_following(following: NamedUser) → None¶
-
remove_from_starred(starred: Repository) → None¶
-
remove_from_subscriptions(subscription: Repository) → None¶
-
remove_from_watched(watched: Repository) → None¶
-
accept_invitation(invitation: Invitation | int) → None¶
-
get_invitations() → PaginatedList[Invitation]¶
-
create_migration(repos: list[Repository] | tuple[Repository], lock_repositories: Opt[bool] = NotSet, exclude_attachments: Opt[bool] = NotSet) → Migration¶ - Calls
-
get_migrations() → PaginatedList[Migration]¶ - Calls
-
get_organization_membership(org: str) → Membership¶
-