diff --git a/appview/models/label.go b/appview/models/label.go index 076801e8..a8d9e8f1 100644 --- a/appview/models/label.go +++ b/appview/models/label.go @@ -461,21 +461,22 @@ func ReduceLabelOps(ops []LabelOp) []LabelOp { return result } -func DefaultLabelDefs() []string { - rkeys := []string{ - "wontfix", - "duplicate", - "assignee", - "good-first-issue", - "documentation", - } +var ( + LabelWontfix = fmt.Sprintf("at://%s/%s/%s", consts.TangledDid, tangled.LabelDefinitionNSID, "wontfix") + LabelDuplicate = fmt.Sprintf("at://%s/%s/%s", consts.TangledDid, tangled.LabelDefinitionNSID, "duplicate") + LabelAssignee = fmt.Sprintf("at://%s/%s/%s", consts.TangledDid, tangled.LabelDefinitionNSID, "assignee") + LabelGoodFirstIssue = fmt.Sprintf("at://%s/%s/%s", consts.TangledDid, tangled.LabelDefinitionNSID, "good-first-issue") + LabelDocumentation = fmt.Sprintf("at://%s/%s/%s", consts.TangledDid, tangled.LabelDefinitionNSID, "documentation") +) - defs := make([]string, len(rkeys)) - for i, r := range rkeys { - defs[i] = fmt.Sprintf("at://%s/%s/%s", consts.TangledDid, tangled.LabelDefinitionNSID, r) +func DefaultLabelDefs() []string { + return []string{ + LabelWontfix, + LabelDuplicate, + LabelAssignee, + LabelGoodFirstIssue, + LabelDocumentation, } - - return defs } func FetchDefaultDefs(r *idresolver.Resolver) ([]LabelDefinition, error) { diff --git a/appview/pages/pages.go b/appview/pages/pages.go index d268b3c5..c0d4a036 100644 --- a/appview/pages/pages.go +++ b/appview/pages/pages.go @@ -306,6 +306,7 @@ type TimelineParams struct { LoggedInUser *oauth.User Timeline []models.TimelineEvent Repos []models.Repo + GfiLabel *models.LabelDefinition } func (p *Pages) Timeline(w io.Writer, params TimelineParams) error { @@ -317,6 +318,7 @@ type GoodFirstIssuesParams struct { Issues []models.Issue RepoGroups []*models.RepoGroup LabelDefs map[string]*models.LabelDefinition + GfiLabel *models.LabelDefinition Page pagination.Page } diff --git a/appview/pages/templates/goodfirstissues/index.html b/appview/pages/templates/goodfirstissues/index.html index dd11521a..a3fb2f3e 100644 --- a/appview/pages/templates/goodfirstissues/index.html +++ b/appview/pages/templates/goodfirstissues/index.html @@ -9,8 +9,10 @@ {{ define "content" }}
Find beginner-friendly issues across all repositories to get started with open source contributions.
@@ -35,22 +37,22 @@ {{ else }} {{ range .RepoGroups }}- Merge a PR for "good first issue" (make this a label) a and get Tangled stickers shipped free. -
- - browse issues - {{ i "arrow-right" "size-4" }} - -+ Make your first contribution to an open-source project this October. +
++ good-first-issue is a collection of issues on open-source projects + that are easy ways for new contributors to give back to the projects + they love. +
+ + Browse issues {{ i "arrow-right" "size-4" }} + +