Skip to content

Commit

Permalink
Update query-issue-info.js
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Jul 20, 2024
1 parent c620ae1 commit 14227e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion github-actions/utils/query-issue-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@ async function queryIssueInfo(issueNum, github, context) {
console.log(response);
// Extract the list of project items associated with the issue
const projectItems = response.repository.issue.projectItems.nodes;
console.log('here ffffff');
for (item in projectItems) {
console.log(item);
}

// Since there is always one item associated with the issue,
// directly get the item's ID from the first index
const id = projectItems[0].id;
// const id = projectItems[0].id;

// Iterate through the field values of the first project item
// and find the node that contains the 'name' property, then get its 'name' value
Expand Down

0 comments on commit 14227e6

Please sign in to comment.