From d016486849dd369ab283b98cb1a86dc730f44f37 Mon Sep 17 00:00:00 2001 From: Kirill Zhuravlev Date: Wed, 15 Feb 2023 02:33:18 +0100 Subject: [PATCH] fixme --- stale_repositories_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stale_repositories_test.go b/stale_repositories_test.go index c690bdb2..5bb401bc 100644 --- a/stale_repositories_test.go +++ b/stale_repositories_test.go @@ -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"))