Уведомление по утрам
This commit is contained in:
parent
c09d6b2bab
commit
c5144e1043
@ -24,7 +24,8 @@ public class SchedulerNotification {
|
|||||||
|
|
||||||
@Scheduled(cron = "0 9 * * MON-FRI")
|
@Scheduled(cron = "0 9 * * MON-FRI")
|
||||||
public void goodMorning() {
|
public void goodMorning() {
|
||||||
User user = userService.getByLogin("mstruchkov").get();
|
List<User> allRegister = userService.getAllRegister();
|
||||||
|
for (User user : allRegister) {
|
||||||
List<PullRequest> pullRequests = pullRequestsService.getAllByReviewerAndStatuses(
|
List<PullRequest> pullRequests = pullRequestsService.getAllByReviewerAndStatuses(
|
||||||
user.getLogin(),
|
user.getLogin(),
|
||||||
ReviewerStatus.NEEDS_WORK
|
ReviewerStatus.NEEDS_WORK
|
||||||
@ -36,5 +37,6 @@ public class SchedulerNotification {
|
|||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user