mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +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")
|
url, _ := selLink.Attr("href")
|
||||||
link := Link{
|
link := Link{
|
||||||
Title: selLink.Text(),
|
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(),
|
Description: selLi.Text(),
|
||||||
Url: url,
|
Url: url,
|
||||||
}
|
}
|
||||||
links = append(links, link)
|
links = append(links, link)
|
||||||
})
|
})
|
||||||
|
|
||||||
// FIXME: In this case we would have an empty category in main index.html with link to 404 page.
|
// FIXME: In this case we would have an empty category in main index.html with link to 404 page.
|
||||||
if len(links) == 0 {
|
if len(links) == 0 {
|
||||||
err = errors.New("category does not contain links")
|
err = errors.New("category does not contain links")
|
||||||
|
@ -26,7 +26,7 @@ const issueTemplateContent = `
|
|||||||
|
|
||||||
var issueTemplate = template.Must(template.New("issue").Parse(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 reGithubRepo = regexp.MustCompile("https://github.com/[a-zA-Z0-9-._]+/[a-zA-Z0-9-._]+$")
|
||||||
var githubGETREPO = "https://api.github.com/repos%s"
|
var githubGETREPO = "https://api.github.com/repos%s"
|
||||||
var githubGETCOMMITS = "https://api.github.com/repos%s/commits"
|
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
|
// FIXME: use https
|
||||||
var awesomeGoGETISSUES = "http://api.github.com/repos/avelino/awesome-go/issues" //only returns open issues
|
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 numberOfYears time.Duration = 1
|
||||||
var timeNow = time.Now()
|
var timeNow = time.Now()
|
||||||
var issueTitle = fmt.Sprintf("Investigate repositories with more than 1 year without update - %s", timeNow.Format("2006-01-02"))
|
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