proj_flow.log.commit
The proj_flow.log.commit allows analysing the git commits for changelog generation.
- class proj_flow.log.commit.Section(key, header)
- class proj_flow.log.commit.Link(scope, summary, hash, short_hash, is_breaking, breaking_message, references)
- class proj_flow.log.commit.Commit(type, link)
- class proj_flow.log.commit.ReleaseInfo(url: str | None = None, is_draft: bool | None = None, ref: str | None = None, tag: str | None = None)
- class proj_flow.log.commit.Hosting(host_link: str)
Generates links to the hosting service.
- property is_active
Can publish a release
- abstract single_commit_link(link: Link) str | None
Link to a single commit on this hosting platform.
- abstract commit_listing_link(setup: LogSetup) str | None
Link to a comparison page between two tags on this hosting platform.
- abstract reference_link(ref: str) str | None
Link to an issue, based on a reference, provided this hosting platform can recognize it.
- abstract add_release(log: Dict[str, List[Link]], setup: LogSetup, git: Git, draft: bool) ReleaseInfo
Publish a release for current setup, putting the log into release notes.
- abstract locate_release(release_name: str) ReleaseInfo | None
Locate a release by its name.
- abstract upload_to_release(release: ReleaseInfo, directory: str, names: list[str])
Upload package artifacts to the release.
- abstract publish(release: ReleaseInfo) ReleaseInfo
Publish given release, return updated release info.
- class proj_flow.log.commit.NoHosting
Generates links to the hosting service.
- property is_active
Can publish a release
- commit_listing_link(setup: LogSetup) str | None
Link to a comparison page between two tags on this hosting platform.
- reference_link(ref: str) str | None
Link to an issue, based on a reference, provided this hosting platform can recognize it.
- add_release(log: Dict[str, List[Link]], setup: LogSetup, git: Git, draft: bool) ReleaseInfo
Publish a release for current setup, putting the log into release notes.
- locate_release(release_name: str) ReleaseInfo | None
Locate a release by its name.
- upload_to_release(release: ReleaseInfo, directory: str, names: list[str])
Upload package artifacts to the release.
- publish(release: ReleaseInfo)
Publish given release, return updated release info.
- class proj_flow.log.commit.LogSetup(hosting: ~proj_flow.log.commit.Hosting, prev_tag: str | None, curr_tag: str | None, omit: list[str], scope_fix: ~typing.Dict[str, str] = <factory>, take_all: bool = False)
Represents setup for log extarction.
- property commit_range
Commit range for log retrieval.
- commit_listing_link()
Link to a comparison page between two tags on hosting platform attached to this setup.
- class proj_flow.log.commit.Remote(name, usage, url)