copier_python_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#

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

Add change.

class copier_python_tools.add_changes.Issue#

Bases: typing.NamedTuple

Issue.

owner: str#

None

Owner.

repo: str#

None

Repository.

issue: int#

None

Issue.

copier_python_tools.add_changes.get_issue_from_active_branch() copier_python_tools.add_changes.Issue#

Get issue associated with active branch.

class copier_python_tools.add_changes.Change#

Change.

id: int#

None

ID.

name: str#

None

Name.

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

Get related issue title.

copier_python_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.

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

Query GitHub for an issue.

copier_python_tools.add_changes.sanitize(
query: str,
) str#

Sanitize query.