generated from leanix/repository-template
-
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.
- Loading branch information
1 parent
e116e60
commit 30ef674
Showing
13 changed files
with
50 additions
and
49 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
6 changes: 3 additions & 3 deletions
6
...leanix/githubagent/client/GithubClient.kt → ...leanix/githubagent/client/GitHubClient.kt
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package net.leanix.githubagent.client | ||
|
||
import net.leanix.githubagent.dto.GithubAppResponse | ||
import net.leanix.githubagent.dto.GitHubAppResponse | ||
import org.springframework.cloud.openfeign.FeignClient | ||
import org.springframework.web.bind.annotation.GetMapping | ||
import org.springframework.web.bind.annotation.RequestHeader | ||
|
||
@FeignClient(name = "githubClient", url = "\${github-enterprise.baseUrl}") | ||
interface GithubClient { | ||
interface GitHubClient { | ||
|
||
@GetMapping("/api/v3/app") | ||
fun getApp( | ||
@RequestHeader("Authorization") jwt: String, | ||
@RequestHeader("Accept") accept: String = "application/vnd.github.v3+json" | ||
): GithubAppResponse | ||
): GitHubAppResponse | ||
} |
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
6 changes: 3 additions & 3 deletions
6
src/main/kotlin/net/leanix/githubagent/exceptions/Exceptions.kt
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package net.leanix.githubagent.exceptions | ||
|
||
class GithubEnterpriseConfigurationMissingException(properties: String) : RuntimeException( | ||
class GitHubEnterpriseConfigurationMissingException(properties: String) : RuntimeException( | ||
"Github Enterprise properties '$properties' are not set" | ||
) | ||
class GithubAppInsufficientPermissionsException(message: String) : RuntimeException(message) | ||
class GitHubAppInsufficientPermissionsException(message: String) : RuntimeException(message) | ||
class FailedToCreateJWTException(message: String) : RuntimeException(message) | ||
class UnableToConnectToGithubEnterpriseException(message: String) : RuntimeException(message) | ||
class UnableToConnectToGitHubEnterpriseException(message: String) : RuntimeException(message) |
4 changes: 2 additions & 2 deletions
4
src/main/kotlin/net/leanix/githubagent/runners/PostStartupRunner.kt
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
4 changes: 2 additions & 2 deletions
4
src/main/kotlin/net/leanix/githubagent/services/CachingService.kt
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
10 changes: 5 additions & 5 deletions
10
...rvices/GithubAuthenticationServiceTest.kt → ...rvices/GitHubAuthenticationServiceTest.kt
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