Revert "chore: rename module + references to tiennm99/ghstats-cards"

This reverts commit 399a3dc. Repo stays as tiennm99/ghstats; the
Marketplace display name ("ghstats-cards" in action.yml) is the only
place the new name remains, since that field requires uniqueness on
the Marketplace.

plans/reports/* were added alongside the rename in the same commit
and are preserved by not deleting them in this revert.
This commit is contained in:
2026-04-18 23:51:33 +07:00
parent 399a3dc723
commit 8bd2128564
14 changed files with 36 additions and 36 deletions
+6 -6
View File
@@ -3,14 +3,14 @@
> Generate SVG cards summarizing a GitHub user's profile — written in Go.
[![Marketplace](https://img.shields.io/badge/Marketplace-ghstats--cards-2f81f7?logo=github)](https://github.com/marketplace/actions/ghstats-cards)
[![Release](https://img.shields.io/github/v/release/tiennm99/ghstats-cards?color=blue)](https://github.com/tiennm99/ghstats-cards/releases/latest)
[![License](https://img.shields.io/github/license/tiennm99/ghstats-cards?color=green)](./LICENSE)
[![Release](https://img.shields.io/github/v/release/tiennm99/ghstats?color=blue)](https://github.com/tiennm99/ghstats/releases/latest)
[![License](https://img.shields.io/github/license/tiennm99/ghstats?color=green)](./LICENSE)
`ghstats` is a single-binary CLI (and a GitHub Action wrapping it) that fetches
data for a GitHub user and writes a themed set of SVGs you can embed in your
profile README.
Marketplace listing: **[ghstats-cards](https://github.com/marketplace/actions/ghstats-cards)** · Source: [`tiennm99/ghstats-cards`](https://github.com/tiennm99/ghstats-cards)
Marketplace listing: **[ghstats-cards](https://github.com/marketplace/actions/ghstats-cards)** · Source: [`tiennm99/ghstats`](https://github.com/tiennm99/ghstats)
Cards rendered:
@@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: tiennm99/ghstats-cards@v1
- uses: tiennm99/ghstats@v1
with:
user: ${{ github.repository_owner }}
token: ${{ secrets.GHSTATS_TOKEN }} # classic PAT with read:user + repo
@@ -96,13 +96,13 @@ Then embed the cards in your `README.md`:
## Use as a CLI
```sh
go install github.com/tiennm99/ghstats-cards@latest
go install github.com/tiennm99/ghstats@latest
```
Or build from source:
```sh
git clone https://github.com/tiennm99/ghstats-cards
git clone https://github.com/tiennm99/ghstats
cd ghstats
go build -o ghstats .
```
+6 -6
View File
@@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: tiennm99/ghstats-cards@v1
- uses: tiennm99/ghstats@v1
with:
user: ${{ github.repository_owner }}
token: ${{ secrets.GHSTATS_TOKEN }}
@@ -77,7 +77,7 @@ Install:
```sh
# Linux x86_64 example
curl -L https://github.com/tiennm99/ghstats-cards/releases/latest/download/ghstats_linux_amd64.tar.gz \
curl -L https://github.com/tiennm99/ghstats/releases/latest/download/ghstats_linux_amd64.tar.gz \
| tar xz
./ghstats -user YOUR_USERNAME
```
@@ -85,21 +85,21 @@ curl -L https://github.com/tiennm99/ghstats-cards/releases/latest/download/ghsta
## 3. go install
```sh
go install github.com/tiennm99/ghstats-cards@latest
go install github.com/tiennm99/ghstats@latest
```
Requires Go 1.26+. Puts the binary in `$(go env GOPATH)/bin`.
## Docker image
Published to `ghcr.io/tiennm99/ghstats-cards:<tag>` on each `v*` release via `.github/workflows/release.yml` (buildx, multi-tag: exact version, major.minor, major, latest).
Published to `ghcr.io/tiennm99/ghstats:<tag>` on each `v*` release via `.github/workflows/release.yml` (buildx, multi-tag: exact version, major.minor, major, latest).
The Action itself uses a runner-built image by default (`image: Dockerfile` in `action.yml`). To switch to the pre-built image for faster cold starts, edit `action.yml`:
```yaml
runs:
using: docker
image: docker://ghcr.io/tiennm99/ghstats-cards:v1
image: docker://ghcr.io/tiennm99/ghstats:v1
```
## Release process
@@ -113,7 +113,7 @@ runs:
5. **Marketplace publishing (one-time per repo):** GitHub only exposes the
"Publish this Action to the GitHub Marketplace" toggle on the Release
web UI — there is no CLI flag. Open the newly created release at
`https://github.com/tiennm99/ghstats-cards/releases/tag/vX.Y.Z/edit`, tick the
`https://github.com/tiennm99/ghstats/releases/tag/vX.Y.Z/edit`, tick the
marketplace checkbox, accept the terms, and re-publish. Subsequent
releases inherit marketplace visibility automatically.
+1 -1
View File
@@ -1,3 +1,3 @@
module github.com/tiennm99/ghstats-cards
module github.com/tiennm99/ghstats
go 1.26
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"os"
"path/filepath"
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
// Card renders one SVG for a Profile under the given theme.
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"strings"
"testing"
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
func TestRenderAll(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"strings"
"time"
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
type contributionsCard struct{}
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"math"
"strings"
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
// renderDonutCard draws a donut chart with a left-side legend. Shared by the
+2 -2
View File
@@ -1,8 +1,8 @@
package card
import (
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
type mostCommitLanguageCard struct{}
@@ -1,8 +1,8 @@
package card
import (
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
type mostCommitLanguageAllTimeCard struct{}
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
type productiveCard struct{}
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"strings"
"time"
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
type profileCard struct{}
+2 -2
View File
@@ -1,8 +1,8 @@
package card
import (
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
type reposPerLanguageCard struct{}
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
type statsCard struct{}
+3 -3
View File
@@ -11,9 +11,9 @@ import (
"syscall"
"time"
"github.com/tiennm99/ghstats-cards/internal/card"
"github.com/tiennm99/ghstats-cards/internal/github"
"github.com/tiennm99/ghstats-cards/internal/theme"
"github.com/tiennm99/ghstats/internal/card"
"github.com/tiennm99/ghstats/internal/github"
"github.com/tiennm99/ghstats/internal/theme"
)
func main() {