mirror of
https://github.com/status-im/status-github-bot.git
synced 2025-02-09 20:05:12 +00:00
Don't try to move project cards to the same column
This commit is contained in:
parent
04c257636f
commit
6dc2582870
@ -240,6 +240,10 @@ async function assignPullRequestToCorrectColumn (github, robot, repo, pullReques
|
|||||||
try {
|
try {
|
||||||
robot.log.trace(`Found card in source column ${srcColumn.name}`, existingGHCard.id, srcColumn.id)
|
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) {
|
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}`)
|
robot.log.info(`Would have moved card ${existingGHCard.id} to ${dstColumn.name} for PR #${prNumber}`)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user