Skip to content

Commit c65d1e5

Browse files
Replace nameWithNamespace field in gitlab graĥQL queries with fullPath
1 parent d8b8d33 commit c65d1e5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/repositories/gitlab.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const GRAPHQL_UPDATE: &str = "query($ids: [ID!]!) {
1616
projects(ids: $ids) {
1717
nodes {
1818
id
19-
nameWithNamespace
19+
fullPath
2020
lastActivityAt
2121
description
2222
starCount
@@ -29,7 +29,7 @@ const GRAPHQL_UPDATE: &str = "query($ids: [ID!]!) {
2929
const GRAPHQL_SINGLE: &str = "query($fullPath: ID!) {
3030
project(fullPath: $fullPath) {
3131
id
32-
nameWithNamespace
32+
fullPath
3333
lastActivityAt
3434
description
3535
starCount
@@ -91,7 +91,7 @@ impl RepositoryForge for GitLab {
9191
if let Some(repo) = response.data.and_then(|d| d.project) {
9292
Ok(Some(Repository {
9393
id: repo.id,
94-
name_with_owner: repo.name_with_namespace,
94+
name_with_owner: repo.full_path,
9595
description: repo.description,
9696
last_activity_at: repo.last_activity_at,
9797
stars: repo.star_count,
@@ -123,7 +123,7 @@ impl RepositoryForge for GitLab {
123123
if let Some(node) = node {
124124
let repo = Repository {
125125
id: node.id,
126-
name_with_owner: node.name_with_namespace,
126+
name_with_owner: node.full_path,
127127
description: node.description,
128128
last_activity_at: node.last_activity_at,
129129
stars: node.star_count,
@@ -213,7 +213,7 @@ struct GraphProjectNode {
213213
#[serde(rename_all = "camelCase")]
214214
struct GraphProject {
215215
id: String,
216-
name_with_namespace: String,
216+
full_path: String,
217217
last_activity_at: Option<DateTime<Utc>>,
218218
description: Option<String>,
219219
star_count: i64,

0 commit comments

Comments
 (0)