mirror of
https://github.com/tiennm99/ghglance.git
synced 2026-10-19 00:15:04 +00:00
chore: rename the project to ghglance
The Marketplace rejects ghstats as an action name, so the repo, Go module, binary, and action share the name ghglance instead. The demo workflow keeps reading the existing GHSTATS_TOKEN repo secret.
This commit is contained in:
1 parent
8c1f139990
commit
3fc8a59de6
102 files changed
+238
-173
No files matched your search
@@ -6,8 +6,8 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
// Card renders one SVG for a Profile under the given theme.
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
func TestRenderAll(t *testing.T) {
|
||||
@@ -35,7 +35,7 @@ func TestRenderAll(t *testing.T) {
|
||||
{Name: "Python", Color: "#3572A5", Value: 150},
|
||||
},
|
||||
TopRepos: []github.RepoInfo{
|
||||
{Owner: "tiennm99", Name: "ghstats", Stars: 42, PrimaryLanguage: "Go", PrimaryColor: "#00ADD8"},
|
||||
{Owner: "tiennm99", Name: "ghglance", Stars: 42, PrimaryLanguage: "Go", PrimaryColor: "#00ADD8"},
|
||||
{Owner: "tiennm99", Name: "some-app & <tool>", Stars: 17, PrimaryLanguage: "TypeScript", PrimaryColor: "#3178c6"},
|
||||
{Owner: "tiennm99", Name: "fork-only", Stars: 99, IsFork: true},
|
||||
},
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type contributionsCard struct{}
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type contributionsByYearCard struct{}
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type contributionsHeatmapCard struct{}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
)
|
||||
|
||||
// GitHub's contributionCalendar is week-aligned, so a "last year" series for a
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"math"
|
||||
"strings"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
// renderDonutCard draws a donut chart with a left-side legend. Shared by the
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package card
|
||||
|
||||
import (
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type mostCommitLanguageCard struct{}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package card
|
||||
|
||||
import (
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type mostCommitLanguageAllTimeCard struct{}
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type productiveCard struct{}
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type productiveWeekdayCard struct{}
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type profileCard struct{}
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type recordsCard struct{}
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
// dayAt is a tiny helper so fixtures stay readable.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package card
|
||||
|
||||
import (
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type reposPerLanguageCard struct{}
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type statsCard struct{}
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type streakCard struct{}
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
type topStarredReposCard struct{}
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/tiennm99/ghstats/internal/github"
|
||||
"github.com/tiennm99/ghstats/internal/theme"
|
||||
"github.com/tiennm99/ghglance/internal/github"
|
||||
"github.com/tiennm99/ghglance/internal/theme"
|
||||
)
|
||||
|
||||
// TestPadToWeekGridRotatesByWeekStart checks that the leading blank pad
|
||||
|
||||
@@ -69,7 +69,7 @@ func (c *Client) query(ctx context.Context, q string, vars map[string]any, out a
|
||||
return fmt.Errorf("new request: %w", err)
|
||||
}
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("User-Agent", "ghstats")
|
||||
req.Header.Set("User-Agent", "ghglance")
|
||||
if c.token != "" {
|
||||
req.Header.Set("Authorization", "bearer "+c.token)
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ func TestRepoAffiliationsAndOwnership(t *testing.T) {
|
||||
orgWrite := orgAdmin
|
||||
orgWrite.ViewerPermission = "WRITE"
|
||||
|
||||
own := repoNode{Name: "ghstats"}
|
||||
own := repoNode{Name: "ghglance"}
|
||||
own.Owner = &struct {
|
||||
Login string `json:"login"`
|
||||
}{Login: "tiennm99"}
|
||||
|
||||
Reference in new issue
Block a user