Don't try to move project cards to the same column

This commit is contained in:
Pedro Pombeiro 2018-02-05 18:52:07 +01:00
parent 04c257636f
commit 6dc2582870
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647

View File

@ -240,6 +240,10 @@ async function assignPullRequestToCorrectColumn (github, robot, repo, pullReques
try {
robot.log.trace(`Found card in source column ${srcColumn.name}`, existingGHCard.id, srcColumn.id)
if (dstColumn === srcColumn) {
return
}
if (process.env.DRY_RUN || process.env.DRY_RUN_PR_TO_TEST) {
robot.log.info(`Would have moved card ${existingGHCard.id} to ${dstColumn.name} for PR #${prNumber}`)
} else {