mirror of
https://github.com/DerDavidBohl/dirigent-spring.git
synced 2026-01-08 00:39:35 -06:00
Renamed Url
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -19,7 +19,7 @@ public class GiteaDeploymentsController {
|
||||
|
||||
@PostMapping()
|
||||
public void webHook(@RequestBody GiteaRequestBody body) {
|
||||
deploymentsService.startSingleDeploymentBySource(body.repository().url());
|
||||
deploymentsService.startSingleDeploymentBySource(body.repository().cloneUrl());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user