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
//! The YouTrack family spec: the page of an issue.

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

pub static SPEC: FamilySpec = FamilySpec {
    // `{url}/issue/ABC-12`, on Cloud and Server alike.
    issue_web_url: |base, _project, reference| {
        let reference = reference.trim();
        (!reference.is_empty()).then(|| format!("{}/issue/{reference}", base.trim_end_matches('/')))
    },
    ..FamilySpec::none(ApiFamily::YouTrack, "YT", '#')
};