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#

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

Add change.

class dev.tools.add_changes.Issue#

Bases: typing.NamedTuple

Issue.

owner: str#

None

Owner.

repo: str#

None

Repository.

issue: int#

None

Issue.

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

Get issue associated with active branch.

class dev.tools.add_changes.Change#

Change.

id: int#

None

ID.

name: str#

None

Name.

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

Get related issue title.

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.

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

Query GitHub for an issue.

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

Sanitize query.