-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed repository download (#28)
- Loading branch information
1 parent
26cf462
commit db205a2
Showing
24 changed files
with
441 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
api-server/src/main/java/com/repoachiever/dto/GitHubRepositoriesDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.repoachiever.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import jakarta.enterprise.context.ApplicationScoped; | ||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Represents retrieved GitHub repository details. | ||
*/ | ||
@Getter | ||
@ApplicationScoped | ||
public class GitHubRepositoriesDto { | ||
/** | ||
* Represents remote repository short name. | ||
*/ | ||
@Valid | ||
@NotNull | ||
@JsonProperty("name") | ||
public String name; | ||
|
||
/** | ||
* Represents remote repository default branch. | ||
*/ | ||
@Valid | ||
@NotNull | ||
@JsonProperty("default_branch") | ||
public String defaultBranch; | ||
} |
22 changes: 22 additions & 0 deletions
22
api-server/src/main/java/com/repoachiever/dto/GitHubUserDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.repoachiever.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import jakarta.enterprise.context.ApplicationScoped; | ||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Represents retrieved GitHub user details. | ||
*/ | ||
@Getter | ||
@ApplicationScoped | ||
public class GitHubUserDto { | ||
/** | ||
* Represents user name. | ||
*/ | ||
@Valid | ||
@NotNull | ||
@JsonProperty("login") | ||
public String login; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ver/src/main/java/com/repoachiever/exception/ConfigCronExpressionValidationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.repoachiever.exception; | ||
|
||
import java.io.IOException; | ||
import java.util.Arrays; | ||
import java.util.Formatter; | ||
|
||
/** | ||
* Represents exception used when configuration file cron expression validation | ||
* process fails. | ||
*/ | ||
public class ConfigCronExpressionValidationException extends IOException { | ||
public ConfigCronExpressionValidationException() { | ||
this(""); | ||
} | ||
|
||
public ConfigCronExpressionValidationException(Object... message) { | ||
super( | ||
new Formatter() | ||
.format("Config file cron expression is not valid: %s", Arrays.stream(message).toArray()) | ||
.toString()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.