mirror of
https://github.com/avelino/awesome-go.git
synced 2025-01-31 04:48:53 +00:00
fixme
This commit is contained in:
parent
270d554b95
commit
5a7a10e3f4
4
main.go
4
main.go
@ -248,12 +248,14 @@ func extractCategory(doc *goquery.Document, selector string) (*Category, error)
|
||||
url, _ := selLink.Attr("href")
|
||||
link := Link{
|
||||
Title: selLink.Text(),
|
||||
// FIXME: Title contains only title but description contains Title + description
|
||||
// FIXME(kazhuravlev): Title contains only title but
|
||||
// description contains Title + description
|
||||
Description: selLi.Text(),
|
||||
Url: url,
|
||||
}
|
||||
links = append(links, link)
|
||||
})
|
||||
|
||||
// FIXME: In this case we would have an empty category in main index.html with link to 404 page.
|
||||
if len(links) == 0 {
|
||||
err = errors.New("category does not contain links")
|
||||
|
@ -26,7 +26,7 @@ const issueTemplateContent = `
|
||||
|
||||
var issueTemplate = template.Must(template.New("issue").Parse(issueTemplateContent))
|
||||
|
||||
// FIXME: replace to official github client
|
||||
// FIXME: use 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"
|
||||
@ -34,7 +34,9 @@ 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 * ...
|
||||
// FIXME: variable has type Duration, but contains a number. we should use
|
||||
//
|
||||
// time.Hour * ... or change type of variable
|
||||
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"))
|
||||
|
Loading…
Reference in New Issue
Block a user