pub enum Forge {
Github,
Gitlab,
}Expand description
A supported forge.
Variants§
Github
github.com, driven through gh.
Gitlab
gitlab.com or a self-hosted GitLab, driven through glab.
Implementations§
Source§impl Forge
impl Forge
Sourcepub const fn cli_override(self) -> &'static str
pub const fn cli_override(self) -> &'static str
The environment variable that substitutes this forge’s CLI.
Sourcepub const fn cli_floor(self) -> (u32, u32, u32)
pub const fn cli_floor(self) -> (u32, u32, u32)
The lowest forge-CLI version this binary calls.
gh issue develop was introduced in gh 2.19.0, so below that the
command does not exist and the floor is a fact rather than a
preference. The default naming this binary depends on is a property
of the GraphQL API — CreateLinkedBranchInput.name is optional and
documented to default to the issue number and title — so no higher
floor buys correctness.
The glab floor is the version whose source this behavior was
written against. Only glab api is called, which is much older, so
the floor is stricter than the calls need.
Sourcepub const fn cli_upgrade(self) -> &'static str
pub const fn cli_upgrade(self) -> &'static str
The command that raises a CLI below Self::cli_floor.