Skip to content

Commit

Permalink
refactor: rename recentForks to recentForkedRepos to match others
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Jul 23, 2024
1 parent e9fb9c6 commit 06a1a09
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ This function requires GitHub authentication with the following API scopes:
### Forks you recently created

```
{{range recentForks "charmbracelet" 10}}
{{range recentForkedRepos "charmbracelet" 10}}
Name: {{.Name}}
Description: {{.Description}}
URL: {{.URL}})
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func main() {
funcMap["recentPullRequests"] = recentPullRequests
funcMap["recentCreatedRepos"] = recentCreatedRepos
funcMap["recentPushedRepos"] = recentPushedRepos
funcMap["recentForks"] = recentForks
funcMap["recentForkedRepos"] = recentForkedRepos
funcMap["recentReleases"] = recentReleases
funcMap["followers"] = recentFollowers
funcMap["recentStars"] = recentStars
Expand Down
2 changes: 1 addition & 1 deletion repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func recentCreatedRepos(owner string, count int) []Repo {
return repos
}

func recentForks(owner string, count int) []Repo {
func recentForkedRepos(owner string, count int) []Repo {
// fmt.Printf("Finding recently created repos...\n")

var repos []Repo
Expand Down
2 changes: 1 addition & 1 deletion templates/github-profile.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{- end}}

#### 🍴 My recent forks
{{range recentForks "charmbracelet" 10}}
{{range recentForkedRepos "charmbracelet" 10}}
- [{{.Name}}]({{.URL}}) - {{.Description}}
{{- end}}

Expand Down

0 comments on commit 06a1a09

Please sign in to comment.