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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user