This commit is contained in:
Kirill Zhuravlev 2023-02-15 02:33:18 +01:00 committed by Avelino
parent 8ec7df333c
commit d016486849
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A

View File

@ -26,11 +26,15 @@ const issueTemplateContent = `
var issueTemplate = template.Must(template.New("issue").Parse(issueTemplateContent))
// FIXME: replace to official github client
var reGithubRepo = regexp.MustCompile("https://github.com/[a-zA-Z0-9-._]+/[a-zA-Z0-9-._]+$")
var githubGETREPO = "https://api.github.com/repos%s"
var githubGETCOMMITS = "https://api.github.com/repos%s/commits"
var githubPOSTISSUES = "https://api.github.com/repos/avelino/awesome-go/issues"
// FIXME: use https
var awesomeGoGETISSUES = "http://api.github.com/repos/avelino/awesome-go/issues" //only returns open issues
// FIXME: time.Hour * ...
var numberOfYears time.Duration = 1
var timeNow = time.Now()
var issueTitle = fmt.Sprintf("Investigate repositories with more than 1 year without update - %s", timeNow.Format("2006-01-02"))