GitHubProjectHistoryStore#

class gafaelfawr.storage.github_project.GitHubProjectHistoryStore(session)#

Bases: object

Stores and retrieves the history of changes to GitHub projects.

Parameters:

session (AsyncSession) – The database session proxy.

Methods Summary

add(entry)

Record a change to a GitHub project or project template.

list(*[, project_id, template])

List changes to GitHub projects and project templates.

Methods Documentation

async add(entry)#

Record a change to a GitHub project or project template.

Parameters:

entry (GitHubProjectHistoryEntry) – New entry to add to the database.

Return type:

None

async list(*, project_id=None, template=None)#

List changes to GitHub projects and project templates.

Parameters:
  • project_id (int | None, default: None) – Limit the results to changes to this project.

  • template (str | None, default: None) – Limit the results to changes to this template or to projects provisioned from it.

Returns:

Matching changes in the order they were made.

Return type:

list[GitHubProjectHistoryEntry]