Skip to content

Commit 7941117

Browse files
committed
Add detailed logging for retrieved items in add-to-backlog-project workflow
1 parent 85f3f5a commit 7941117

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/add-to-backlog-project.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ jobs:
8383
console.log("Issues retrieved!");
8484
console.log(items);
8585
86+
items.forEach(item => {
87+
console.log(`Item ID: ${item.id}`);
88+
item.fieldValues.nodes.forEach(f => {
89+
console.log(` - Type: ${f.__typename}`);
90+
console.log(` - Field ID: ${f.field?.id}`);
91+
console.log(` - Option ID: ${f.optionId}`);
92+
});
93+
});
94+
8695
// Filter only issues with "Done" status
8796
const doneItems = items.filter(item =>
8897
item.fieldValues.nodes.some(f => f.__typename === "ProjectV2ItemFieldSingleSelectValue" &&

0 commit comments

Comments
 (0)