Skip to content

Commit

Permalink
Update GitHub issue title *before* sending notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Jul 15, 2024
1 parent d1e5038 commit 53ec14b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public void report(Status status, Map<FailureCollector.Level, List<Failure>> fai
GHRepository repository = github.getRepository(config.issue().repository());
GHIssue issue = repository.getIssue(config.issue().id());

// Update last indexing date:
issue.setTitle(toStatusSummary(clock, status, issue.getTitle()));

// add comments if needed:
if (!Status.SUCCESS.equals(status)) {
StringBuilder newMessageBuilder = new StringBuilder(STATUS_REPORT_HEADER)
Expand Down Expand Up @@ -81,9 +84,6 @@ public void report(Status status, Map<FailureCollector.Level, List<Failure>> fai
}
}

// Update last indexing date:
issue.setTitle(toStatusSummary(clock, status, issue.getTitle()));

// handle issue state (open/close):
switch (status) {
case SUCCESS, WARNING -> {
Expand Down

0 comments on commit 53ec14b

Please sign in to comment.