ci_dataclasses
AssociatedPullRequest
¶
Bases: BaseModel
Information for commits that are associated with a pull request.
Attributes:
Name | Type | Description |
---|---|---|
author |
Author
|
... |
merged |
bool
|
... |
pr_number |
int
|
... |
target_branch |
str
|
... |
target_sha |
str
|
... |
pr_branch |
str
|
... |
pr_sha |
str
|
... |
title |
str
|
... |
body |
str
|
... |
Source code in m/github/ci_dataclasses.py
Author
¶
Bases: CamelModel
An object representing a committer.
Attributes:
Name | Type | Description |
---|---|---|
login |
str
|
... |
avatar_url |
str | None
|
... |
email |
str | None
|
... |
Source code in m/github/ci_dataclasses.py
Commit
¶
Bases: BaseModel
The git commit info.
Attributes:
Name | Type | Description |
---|---|---|
author_login |
str
|
... |
short_sha |
str
|
... |
sha |
str
|
... |
message |
str
|
... |
url |
str
|
... |
associated_pull_request |
Optional[AssociatedPullRequest]
|
... |
Source code in m/github/ci_dataclasses.py
get_pr_branch()
¶
is_release(release_prefix)
¶
Determine if the current commit should create a release.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
release_prefix |
str | None
|
The prefix used to flag a release. |
required |
Returns:
Type | Description |
---|---|
bool
|
True if we are dealing with a release branch. |
Source code in m/github/ci_dataclasses.py
CommitInfo
¶
GithubCiRunInfo
¶
PullRequest
¶
Bases: BaseModel
Pull request information.
Attributes:
Name | Type | Description |
---|---|---|
author |
Author
|
... |
pr_number |
int
|
... |
pr_branch |
str
|
... |
target_branch |
str
|
... |
target_sha |
str
|
... |
url |
str
|
... |
title |
str
|
... |
body |
str
|
... |
file_count |
int
|
... |
files |
List[str]
|
... |
is_draft |
bool
|
... |
Source code in m/github/ci_dataclasses.py
changelog_updated()
¶
Determine if the changelog was updated in the pull request.
Returns:
Type | Description |
---|---|
bool
|
True if the changelog was updated. |
is_release_pr(release_prefix)
¶
Determine if the pull request is a release pull request.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
release_prefix |
str | None
|
The prefix used to flag a release. |
required |
Returns:
Type | Description |
---|---|
bool
|
True if we are dealing with a release branch. |