Skip to content

Commit

Permalink
Merge pull request #124 from eclipse-researchlabs/quickFix
Browse files Browse the repository at this point in the history
Quick fix to allow continuous monitoring
  • Loading branch information
schlotze authored May 19, 2022
2 parents 772e897 + f019d9d commit e747609
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private int calculateTimeSinceLastCommit(String projectId, JsonObject commit) {
int difference = 0;
// check if parent id exists for given commit
if (commit.get("parent_ids").getAsJsonArray().size() > 0) {
String parentCommitId = commit.get("parent_ids").getAsString();
String parentCommitId = commit.get("parent_ids").getAsJsonArray().get(0).getAsString();
String commitCreationDateStr = commit.get("created_at").getAsString();
JsonObject parentCommit = getCommitById(projectId, parentCommitId);
if (parentCommit.getAsJsonObject().has("created_at")) {
Expand Down

0 comments on commit e747609

Please sign in to comment.