gitpoulpi-hosting 1.2.0

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

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

pub static SPEC: FamilySpec = FamilySpec {
    // `https://linear.app/<workspace>/issue/ENG-123`. The workspace slug is
    // part of the profile's URL when the user typed it
    // (`https://linear.app/acme`); the listed rows carry the exact URL the
    // API gave, this one serves commit-message references.
    issue_web_url: |base, _project, reference| {
        let reference = reference.trim();
        (!reference.is_empty()).then(|| format!("{}/issue/{reference}", base.trim_end_matches('/')))
    },
    ..FamilySpec::none(ApiFamily::Linear, "LN", '#')
};