Introduce `append_related_issues` function and `IssueRelated` enum to manage related issue linking. Update Gitea action to utilize the new functionality for appending related issues in work package content. Add corresponding tests.
14 lines
361 B
Rust
14 lines
361 B
Rust
use crate::cli::Issue2Work;
|
|
use crate::config::Config;
|
|
use crate::error::GeneralError;
|
|
use url::Url;
|
|
|
|
pub(crate) mod issue2work;
|
|
pub mod utils;
|
|
|
|
pub trait Issue2WorkActionTrait {
|
|
async fn run(&self, url: &Url, config: &Config, args: &Issue2Work) -> Result<(), GeneralError>;
|
|
|
|
fn supports(&self, url: &Url, config: &Config, args: &Issue2Work) -> bool;
|
|
}
|