add pin or popular variable for frontend to use
このコミットが含まれているのは:
コミット
20eddd5b93
|
@ -35,6 +35,7 @@ type User struct {
|
|||
Contributions string
|
||||
Readme string
|
||||
MainRepos []RepoList
|
||||
PinOrPopular string
|
||||
}
|
||||
type RepoList struct {
|
||||
Name string
|
||||
|
@ -161,6 +162,7 @@ func HandleUser(c *fiber.Ctx) error {
|
|||
MainRepo.ForkOf = el.ChildText("p.text-small a.Link--muted")
|
||||
Scrape.MainRepos = append(Scrape.MainRepos, MainRepo)
|
||||
})
|
||||
Scrape.PinOrPopular = e.ChildText("h2.text-normal")
|
||||
})
|
||||
sc.Visit("https://github.com/" + c.Params("user") + "/")
|
||||
// Fixing the output a bit
|
||||
|
|
読み込み中…
新しいイシューから参照