diff --git a/.github/GithubAPI.js b/.github/GithubAPI.js index e88869e..c385d48 100644 --- a/.github/GithubAPI.js +++ b/.github/GithubAPI.js @@ -96,11 +96,13 @@ module.exports = class GithubAPI { ... on Issue { id title + url ${ projectItemsSubquery } } ... on PullRequest { id title + url ${ projectItemsSubquery } } } diff --git a/.github/githubUtils.js b/.github/githubUtils.js index eb8d080..df39ee8 100644 --- a/.github/githubUtils.js +++ b/.github/githubUtils.js @@ -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 = {