Skip to content

Commit 80f9e2d

Browse files
narrowizardclaude
andauthored
chore(deps): update graphql dependency from merico-dev to merico-ai (#8699)
* chore(deps): update graphql dependency from merico-dev to merico-ai - Update github.com/merico-dev/graphql to github.com/merico-ai/graphql - Update import paths across all files using the graphql package - Update go.mod and go.sum with new dependency version Co-Authored-By: Claude <noreply@anthropic.com> * fix(github): fix ineffassign lint error in remote_api.go Use named return values consistently with bare returns to avoid variable shadowing of err in listGithubOwnerRepos. Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent eadd208 commit 80f9e2d

File tree

12 files changed

+18
-17
lines changed

12 files changed

+18
-17
lines changed

backend/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ require (
1616
github.com/lib/pq v1.10.2
1717
github.com/libgit2/git2go/v33 v33.0.6
1818
github.com/magiconair/properties v1.8.5
19-
github.com/merico-dev/graphql v0.0.0-20240807070533-1cafa544cd5d
2019
github.com/mitchellh/mapstructure v1.5.0
2120
github.com/panjf2000/ants/v2 v2.4.6
2221
github.com/robfig/cron/v3 v3.0.0
@@ -45,6 +44,7 @@ require (
4544
github.com/chainguard-dev/git-urls v1.0.2
4645
github.com/go-sql-driver/mysql v1.7.1
4746
github.com/golang-jwt/jwt/v5 v5.0.0-rc.1
47+
github.com/merico-ai/graphql v0.0.0-20260206020408-b7fd267bcfac
4848
github.com/rogpeppe/go-internal v1.11.0
4949
golang.org/x/mod v0.17.0
5050
)

backend/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APP
387387
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
388388
github.com/mattn/go-sqlite3 v1.14.5 h1:1IdxlwTNazvbKJQSxoJ5/9ECbEeaTTyeU7sEAZ5KKTQ=
389389
github.com/mattn/go-sqlite3 v1.14.5/go.mod h1:WVKg1VTActs4Qso6iwGbiFih2UIHo0ENGwNd0Lj+XmI=
390-
github.com/merico-dev/graphql v0.0.0-20240807070533-1cafa544cd5d h1:FpP+YRQudZtnrnIaFvVc87D/WVI7tWi0hBrnRCY8wmQ=
391-
github.com/merico-dev/graphql v0.0.0-20240807070533-1cafa544cd5d/go.mod h1:dcDqG8HXVtfEhTCipFMa0Q+RTKTtDKIO2vJt+JVzHEQ=
390+
github.com/merico-ai/graphql v0.0.0-20260206020408-b7fd267bcfac h1:J3wm8OohrRkYf/+Zy5GxqvhzcP2qHGJRduxTUUbBMdw=
391+
github.com/merico-ai/graphql v0.0.0-20260206020408-b7fd267bcfac/go.mod h1:4WSOgvd/Sv6eLKJE6fvrXlmxePBDGhbwRYKEBeqJr8g=
392392
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
393393
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
394394
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=

backend/helpers/pluginhelper/api/graphql_async_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"sync"
2828
"time"
2929

30-
"github.com/merico-dev/graphql"
30+
"github.com/merico-ai/graphql"
3131
)
3232

3333
// GraphqlAsyncClient send graphql one by one

backend/helpers/pluginhelper/api/graphql_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/apache/incubator-devlake/core/dal"
2929
"github.com/apache/incubator-devlake/core/errors"
3030
plugin "github.com/apache/incubator-devlake/core/plugin"
31-
"github.com/merico-dev/graphql"
31+
"github.com/merico-ai/graphql"
3232
)
3333

3434
// CursorPager contains pagination information for a graphql request

backend/plugins/github/api/remote_api.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,18 @@ func listGithubOwnerRepos(
161161

162162
ownerType, ownerID, err := getOwnerInfo(apiClient, owner)
163163
if err != nil {
164-
return nil, nil, err
164+
return
165165
}
166166

167167
var reposBody *http.Response
168+
var authUserID int
168169
switch ownerType {
169170
case "Organization":
170171
reposBody, err = apiClient.Get(fmt.Sprintf("orgs/%s/repos", owner), query, nil)
171172
case "User":
172-
authUserID, err := getAuthenticatedUserID(apiClient)
173+
authUserID, err = getAuthenticatedUserID(apiClient)
173174
if err != nil {
174-
return nil, nil, err
175+
return
175176
}
176177
if authUserID == ownerID {
177178
// Authenticated user's own account - includes private repos
@@ -185,7 +186,7 @@ func listGithubOwnerRepos(
185186
reposBody, err = apiClient.Get(fmt.Sprintf("users/%s/repos", owner), query, nil)
186187
}
187188
if err != nil {
188-
return nil, nil, err
189+
return
189190
}
190191

191192
var repos []repo
@@ -200,7 +201,7 @@ func listGithubOwnerRepos(
200201
PerPage: page.PerPage,
201202
}
202203
}
203-
return children, nextPage, nil
204+
return
204205
}
205206

206207
func listGithubAppInstalledRepos(

backend/plugins/github_graphql/impl/impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import (
3838
githubTasks "github.com/apache/incubator-devlake/plugins/github/tasks"
3939
"github.com/apache/incubator-devlake/plugins/github_graphql/model/migrationscripts"
4040
"github.com/apache/incubator-devlake/plugins/github_graphql/tasks"
41-
"github.com/merico-dev/graphql"
41+
"github.com/merico-ai/graphql"
4242
"golang.org/x/oauth2"
4343
)
4444

backend/plugins/github_graphql/tasks/account_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
helper "github.com/apache/incubator-devlake/helpers/pluginhelper/api"
2828
"github.com/apache/incubator-devlake/plugins/github/models"
2929
githubTasks "github.com/apache/incubator-devlake/plugins/github/tasks"
30-
"github.com/merico-dev/graphql"
30+
"github.com/merico-ai/graphql"
3131
)
3232

3333
const RAW_ACCOUNTS_TABLE = "github_graphql_accounts"

backend/plugins/github_graphql/tasks/deployment_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/apache/incubator-devlake/core/plugin"
2727
helper "github.com/apache/incubator-devlake/helpers/pluginhelper/api"
2828
githubTasks "github.com/apache/incubator-devlake/plugins/github/tasks"
29-
"github.com/merico-dev/graphql"
29+
"github.com/merico-ai/graphql"
3030
)
3131

3232
var _ plugin.SubTaskEntryPoint = CollectDeployments

backend/plugins/github_graphql/tasks/issue_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
3131
"github.com/apache/incubator-devlake/plugins/github/models"
3232
githubTasks "github.com/apache/incubator-devlake/plugins/github/tasks"
33-
"github.com/merico-dev/graphql"
33+
"github.com/merico-ai/graphql"
3434
)
3535

3636
const RAW_ISSUES_TABLE = "github_graphql_issues"

backend/plugins/github_graphql/tasks/job_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
helper "github.com/apache/incubator-devlake/helpers/pluginhelper/api"
3030
"github.com/apache/incubator-devlake/plugins/github/models"
3131
githubTasks "github.com/apache/incubator-devlake/plugins/github/tasks"
32-
"github.com/merico-dev/graphql"
32+
"github.com/merico-ai/graphql"
3333
)
3434

3535
const RAW_GRAPHQL_JOBS_TABLE = "github_graphql_jobs"

0 commit comments

Comments
 (0)