Skip to content

Commit d6e8a7a

Browse files
committed
fix missing curly bracket and using wrong path in graphql queries
1 parent cf10f0d commit d6e8a7a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

utils.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const getOrFetchGmodFile = async (path: PathLike) => {
134134
const query = gql`{
135135
project(fullPath:"${url.match(/\.com\/(.+?)\/\-/)?.[1]}") {
136136
repository {
137-
blobs(paths:"${path}"){
137+
blobs(paths:"${fpath}"){
138138
nodes{rawTextBlob}
139139
}
140140
}
@@ -147,9 +147,10 @@ export const getOrFetchGmodFile = async (path: PathLike) => {
147147
const request: { data: GithubResponse } = await github.octokit.graphql(
148148
`query text($owner: String!, $repo: String!) {
149149
repository(owner: $owner, name: $repo) {
150-
object(expression: "${branch ?? "HEAD"}:${path}") {
151-
... on Blob {
152-
text
150+
object(expression: "${branch ?? "HEAD"}:${fpath}") {
151+
... on Blob {
152+
text
153+
}
153154
}
154155
}
155156
}`,

0 commit comments

Comments
 (0)