Skip to content

Commit

Permalink
Merge pull request #4 from alexh97/project-assigner
Browse files Browse the repository at this point in the history
Rebuild the distro
  • Loading branch information
Alex Holmansky authored Feb 6, 2020
2 parents 4c9f3b6 + 663f4fd commit 758c8db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project-assigner/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20076,15 +20076,15 @@ async function handleLabeled(octokit, projectName, projectColumnId, labelToMatch
core.setFailed(`Unrecognized event: ${github.context.eventName}`);
}

console.log(`Creating a new card for ${state} ${contentType} #${contentId} in project [${projectName}] column ${columnId} mathing label [${labelToMatch}], labeled by ${github.context.payload.sender.login}`);
console.log(`Creating a new card for ${state} ${contentType} #${contentId} in project [${projectName}] column ${projectColumnId} mathing label [${labelToMatch}], labeled by ${github.context.payload.sender.login}`);
octokit.projects.createCard({
column_id: projectColumnId,
content_id: contentId,
content_type: contentType
}).then(function (response) {
console.log(`${contentType} #${contentId} added to project ${projectName} column ${columnId}`);
console.log(`${contentType} #${contentId} added to project ${projectName} column ${projectColumnId}`);
}).catch(function(error) {
core.setFailed(`Error adding ${contentType} #${contentId} to project ${projectName} column ${columnId}: ${error.message}`);
core.setFailed(`Error adding ${contentType} #${contentId} to project ${projectName} column ${projectColumnId}: ${error.message}`);
});
}
}
Expand Down

0 comments on commit 758c8db

Please sign in to comment.