Add Gitea Action support for issue-to-work conversion

Implemented Gitea actions to support converting Gitea issues into work packages in OpenProject. Modified various modules to include necessary structs, functions, and tests to handle Gitea issues, ensure URL validation, and adapt work package creation based on Gitea issues.
This commit is contained in:
2024-10-25 00:29:34 +02:00
parent 9ef98e5044
commit 2b37c5b18c
10 changed files with 172 additions and 22 deletions

View File

@@ -74,7 +74,7 @@ impl Issue2WorkActionTrait for GitlabAction {
Ok(())
}
fn supports(&self, url: &Url, config: &Config, args: &Issue2Work) -> bool {
fn supports(&self, url: &Url, config: &Config, _args: &Issue2Work) -> bool {
has_client_for_url(&url, &config)
}
}

View File

@@ -39,7 +39,7 @@ pub async fn client_for_url(url: &Url, config: &Config) -> Result<AsyncGitlab, G
pub fn has_client_for_url(url: &Url, config: &Config) -> bool {
for c in &config.gitlab {
if (is_client_for_url(url, c)) {
if is_client_for_url(url, c) {
return true;
}
}