Skip to content

subscription

Accessed as client.repos.subscription; the async client mirrors it.

ReposSubscription

The repos.subscription namespace.

delete

delete(owner: str, repo: str) -> None

Unwatch a repo.

Parameters:

Name Type Description Default
owner str

owner of the repo

required
repo str

name of the repo

required

Returns:

Type Description
None

No content.

Raises:

Type Description
NotFoundError
  1. APINotFound is a not found error response.

Operation ID: userCurrentDeleteSubscription

get

get(owner: str, repo: str) -> WatchInfo

Check if the current user is watching a repo.

Parameters:

Name Type Description Default
owner str

owner of the repo

required
repo str

name of the repo

required

Returns:

Type Description
WatchInfo

WatchInfo.

Raises:

Type Description
NotFoundError
  1. User is not watching this repo or repo do not exist.

Operation ID: userCurrentCheckSubscription

update

update(owner: str, repo: str) -> WatchInfo

Watch a repo.

Parameters:

Name Type Description Default
owner str

owner of the repo

required
repo str

name of the repo

required

Returns:

Type Description
WatchInfo

WatchInfo.

Raises:

Type Description
NotFoundError
  1. APINotFound is a not found error response.

Operation ID: userCurrentPutSubscription

AsyncReposSubscription

The repos.subscription namespace.

delete

delete(owner: str, repo: str) -> None

Unwatch a repo.

Parameters:

Name Type Description Default
owner str

owner of the repo

required
repo str

name of the repo

required

Returns:

Type Description
None

No content.

Raises:

Type Description
NotFoundError
  1. APINotFound is a not found error response.

Operation ID: userCurrentDeleteSubscription

get

get(owner: str, repo: str) -> WatchInfo

Check if the current user is watching a repo.

Parameters:

Name Type Description Default
owner str

owner of the repo

required
repo str

name of the repo

required

Returns:

Type Description
WatchInfo

WatchInfo.

Raises:

Type Description
NotFoundError
  1. User is not watching this repo or repo do not exist.

Operation ID: userCurrentCheckSubscription

update

update(owner: str, repo: str) -> WatchInfo

Watch a repo.

Parameters:

Name Type Description Default
owner str

owner of the repo

required
repo str

name of the repo

required

Returns:

Type Description
WatchInfo

WatchInfo.

Raises:

Type Description
NotFoundError
  1. APINotFound is a not found error response.

Operation ID: userCurrentPutSubscription