Claptrap-Tracking-Bot / issues

Issues and Feature Suggestions for Claptrack
1 stars 0 forks source link

[BUG] Not formatting GitHub URL's correctly for tracking #4

Open first-dark-dev-sentry-integration[bot] opened 6 months ago

first-dark-dev-sentry-integration[bot] commented 6 months ago

Sentry Issue: CLAPTRACK-C

IllegalArgumentException: Repository name must be in format owner/repo
    at org.kohsuke.github.GitHub.getRepository(GitHub.java:685)
    at com.claptrack.core.clients.github.GithubApiClient.getReleases(GithubApiClient.java:64)
    at com.claptrack.web.routes.v1.tracking.GithubApiController.addGithub(GithubApiController.java:124)
    at io.javalin.routing.HandlerEntry.handle(HandlerEntry.kt:19)
    at io.javalin.http.servlet.DefaultTasks.HTTP$lambda$8$lambda$6$lambda$5$lambda$4$lambda$3(DefaultTasks.kt:32)
...
(33 additional frame(s) were not displayed)

Repository name must be in format owner/repo
hypherionmc commented 6 months ago

Workaround: Remove https://github.com/ from the url.

So if the repo is https://github.com/claptrack-tracking-bot/issues, it must become claptrack-tracking-bot/issues