Refactor Gitea client and improve issue handling

Update the authorization header format in the Gitea client. Enhance issue details in work package creation and make `number` field public in the `Issue` struct.
This commit is contained in:
2024-11-14 14:22:39 +01:00
parent 696fd15cfa
commit 7b6cc33ecb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ impl Issue2WorkActionTrait for GiteaAction {
fn create_work_package_from_issue(issue: &Issue, assignee: Option<User>) -> WorkPackageWriter {
WorkPackageWriter {
subject: format!("{} ({})", issue.title, issue.repository.full_name),
subject: format!("{} ({}/{})", issue.title, issue.repository.full_name, issue.number),
work_type: "TASK".into(),
description: crate::openproject::work::DescriptionWriter {
format: "markdown".into(),