allow to assign automatically current user on new work package

This commit is contained in:
2024-03-15 23:10:21 +01:00
parent 8da5d6ed87
commit 34f6eac006
17 changed files with 310 additions and 92 deletions

View File

@@ -2,13 +2,17 @@ use gitlab::Issue;
use gitlab::Project;
/// A struct which contains Issue and Project
#[derive(Debug)]
pub struct IssueBundle {
pub issue: Issue,
pub project: Project
pub project: Project,
}
impl IssueBundle {
pub fn new(issue: &Issue, project: &Project) -> Self {
IssueBundle{issue: issue.clone(), project: project.clone()}
IssueBundle {
issue: issue.clone(),
project: project.clone(),
}
}
}
}

View File

@@ -1,13 +1,12 @@
pub mod issue;
use gitlab::GitlabError;
use crate::error::GeneralError;
use gitlab::GitlabError;
impl From<GitlabError> for GeneralError {
fn from(value: GitlabError) -> Self {
GeneralError{
description: value.to_string()
GeneralError {
description: value.to_string(),
}
}
}