gitpoulpi-hosting 1.1.1

Hosting and issue-tracker API clients (GitHub, GitLab, Gitea/Forgejo, Azure DevOps, Bitbucket, Gerrit, Jira, Trello, Linear, YouTrack, Redmine, local Markdown issues): project listing, clone helpers, SSH key generation and upload, remote-URL provider matching.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! The Jira family spec: the browse page of an issue.

use crate::spec::FamilySpec;
use gitpoulpi_config::ApiFamily;

pub static SPEC: FamilySpec = FamilySpec {
    // `{site}/browse/ABC-123`, the same on Cloud and Data Center.
    issue_web_url: |base, _project, reference| {
        let reference = reference.trim();
        (!reference.is_empty())
            .then(|| format!("{}/browse/{reference}", base.trim_end_matches('/')))
    },
    ..FamilySpec::none(ApiFamily::Jira, "JI", '#')
};