cli
get_latest_release(token, owner, repo)
¶
Retrieve the latest release for a repo.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
token |
str
|
A Github PAT. |
required |
owner |
str
|
The owner of the repo. |
required |
repo |
str
|
The name of the repo. |
required |
Returns:
Type | Description |
---|---|
OneOf[Issue, str]
|
The latest release. |
Source code in m/github/cli.py
get_pr_info(token, owner, repo, pr_number, file_count)
¶
Retrieve the information of the given Github PR.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
token |
str
|
A Github PAT. |
required |
owner |
str
|
The owner of the repo. |
required |
repo |
str
|
The name of the repo. |
required |
pr_number |
int
|
The pull request number in question. |
required |
file_count |
int
|
The maximum number of files in the pr to retrieve. |
required |
Returns:
Type | Description |
---|---|
OneOf[Issue, Any]
|
The pull request information. |