boilercore_dev.tools.add_changes#

Add changes.

Module Contents#

Classes#

Issue

Issue.

Change

Change.

Functions#

add_change

Add change.

get_issue_from_active_branch

Get issue associated with active branch.

get_change

Get related issue title.

get_connected_prs

Get first PR connected to an issue.

query_gh_issue

Query GitHub for an issue.

sanitize

Sanitize query.

API#

boilercore_dev.tools.add_changes.add_change(
typ: boilercore_dev.tools.types.ChangeType = 'change',
)#

Add change.

class boilercore_dev.tools.add_changes.Issue#

Bases: typing.NamedTuple

Issue.

owner: str#

None

Owner.

repo: str#

None

Repository.

issue: int#

None

Issue.

boilercore_dev.tools.add_changes.get_issue_from_active_branch() boilercore_dev.tools.add_changes.Issue#

Get issue associated with active branch.

class boilercore_dev.tools.add_changes.Change#

Change.

id: int#

None

ID.

name: str#

None

Name.

boilercore_dev.tools.add_changes.get_change(
owner: str,
repo: str,
issue: int,
) boilercore_dev.tools.add_changes.Change#

Get related issue title.

boilercore_dev.tools.add_changes.get_connected_prs(
owner: str,
repo: str,
issue: int,
first: int,
) list[dict[str, Any]]#

Get first PR connected to an issue.

boilercore_dev.tools.add_changes.query_gh_issue(
owner: str,
repo: str,
issue: int,
query: str = 'title',
) dict[str, Any]#

Query GitHub for an issue.

boilercore_dev.tools.add_changes.sanitize(
query: str,
) str#

Sanitize query.