Renamed Url

This commit is contained in:
DerDavidBohl
2025-01-11 17:36:49 +01:00
parent 8fc179e497
commit f5243abc6f
3 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ public class DeploymentsConfigurationProvider implements CacheManagerCustomizer<
private final GitService gitService;
@Value("${dirigent.deployments.git.url}")
@Value("${dirigent.deployments.git.clone_url}")
private String gitUrl;
public DeploymentsConfigurationProvider(GitService gitService) {

View File

@@ -19,7 +19,7 @@ public class GiteaDeploymentsController {
@PostMapping()
public void webHook(@RequestBody GiteaRequestBody body) {
deploymentsService.startSingleDeploymentBySource(body.repository().url());
deploymentsService.startSingleDeploymentBySource(body.repository().cloneUrl());
}
}

View File

@@ -2,5 +2,5 @@ package org.davidbohl.dirigent.deployments.models;
import com.fasterxml.jackson.annotation.JsonProperty;
public record GiteaRepository(String url, @JsonProperty("ssh_url") String sshUrl) {
public record GiteaRepository(@JsonProperty("clone_url") String cloneUrl, @JsonProperty("ssh_url") String sshUrl) {
}