Skip to content

ReferenceChanges

🛈 DocStrings

What changed in a reference implementation since its pinned commit.

Source code in src/aclientp/schema_reference.py
@dataclass(frozen=True)
class ReferenceChanges:
    """What changed in a reference implementation since its pinned commit."""

    reference: ReferenceImplementation
    head: UpstreamCommit
    commits: list[UpstreamCommit]
    """Commits since the pin that touched the reference's paths, newest first."""

    files: list[str]
    """Files under the reference's paths that differ between the pin and the head."""

    @property
    def compare_url(self) -> str:
        repo, pin, head = self.reference.repo, self.reference.commit, self.head.sha
        return f"https://github.com/{repo}/compare/{pin[:12]}...{head[:12]}"

commits instance-attribute

commits: list[UpstreamCommit]

Commits since the pin that touched the reference's paths, newest first.

files instance-attribute

files: list[str]

Files under the reference's paths that differ between the pin and the head.

:fa-brands-github: Show source on GitHub