allow to assign automatically current user on new work package
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user