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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user