forked from ph1ll/gitlab-recurring-issues
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.go
24 lines (22 loc) · 856 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main
import (
boardLabels "gitlab-issue-automation/board_labels"
gitlabUtils "gitlab-issue-automation/gitlab_utils"
recurringIssues "gitlab-issue-automation/recurring_issues"
standupNotes "gitlab-issue-automation/standup_notes"
"log"
"time"
)
func main() {
lastRunTime := gitlabUtils.GetLastRunTime()
forceStandupNotesForToday := gitlabUtils.GetForceStandupNotesForToday()
log.Println("Last run:", lastRunTime.Format(time.RFC3339))
log.Println("Checking whether to create recurring issues")
recurringIssues.ProcessIssueFiles(lastRunTime)
log.Println("Checking whether to adapt board labels")
boardLabels.AdaptLabels()
boardLabels.CleanLabels(lastRunTime)
log.Println("Checking whether to create standup notes")
standupNotes.WriteNotes(lastRunTime, forceStandupNotesForToday)
log.Println("Run complete")
}