Skip to content

Commit ba069a8

Browse files
authored
Merge pull request #11 from zgsm-plugin/main
fix: fix the repository name used when syncing star
2 parents ccdb00f + d81c03c commit ba069a8

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE=
128128
golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc=
129129
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
130130
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
131-
golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70=
132-
golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
133131
golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610=
134132
golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
135133
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

internal/sync/sync_star.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (s *SyncStar) Stargazers() error {
173173

174174
for i, u := range users {
175175
if _, ok := processedMap[u.GithubID]; ok {
176-
users[i].GithubStar = "zgsm-ai.zgsm"
176+
users[i].GithubStar = fmt.Sprintf("%s.%s", s.Owner, s.Repo)
177177
} else {
178178
users[i].GithubStar = ""
179179
}

pkg/response/response.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ func JSONSuccess(c *gin.Context, message, data any) {
2222

2323
// JSONError returns error response (basic version)
2424
func JSONError(c *gin.Context, httpCode int, codeMsg, message string) {
25-
2625
c.JSON(httpCode, gin.H{
2726
"code": codeMsg,
2827
"success": false,

0 commit comments

Comments
 (0)