Skip to content

Commit

Permalink
Upadte the interface for ProjectsV2
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Feb 17, 2024
1 parent 54bf942 commit 28d319f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/project-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ interface ProjectNode {

interface ProjectsEdgesNodesResponse {
organization?: {
projectV2: {
projectsV2: {
totalCount: number
edges: ProjectNode[]
}
}

user?: {
projectV2: {
projectsV2: {
totalCount: number
edges: ProjectNode[]
}
Expand Down Expand Up @@ -166,7 +166,7 @@ export async function projectLink(): Promise<void> {

core.debug(`Search Response: \n ${JSON.stringify(searchResp, null, 2)}`)

const foundNodes = searchResp[ownerType]?.projectV2
const foundNodes = searchResp[ownerType]?.projectsV2

if (foundNodes?.totalCount === 0) {
core.info(`No projects found for ${issueOwnerName} with query ${queryString}`)
Expand Down

0 comments on commit 28d319f

Please sign in to comment.