Skip to content

Commit

Permalink
Add log to updated items
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Jan 9, 2025
1 parent fb3809c commit 9a362b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/GithubAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ module.exports = class GithubAPI {
... on Issue {
id
title
url
${ projectItemsSubquery }
}
... on PullRequest {
id
title
url
${ projectItemsSubquery }
}
}
Expand Down
5 changes: 3 additions & 2 deletions .github/githubUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ const synchronizeProjectsStatuses = async (context, github) => {
fieldId: targetStatusField.id,
newValue: {
singleSelectOptionId: item.newStatusId
}
},
url: item.content.url
}))

console.log(`Updating ${itemsToUpdate.length} items...`);
// await githubAPI.updateProjectItemsFields(itemsPayload);
console.log(`Updated ${itemsToUpdate.length} items: `, itemsPayload.map(item => item.url));
}

module.exports = {
Expand Down

0 comments on commit 9a362b7

Please sign in to comment.