如何知道Heroku管道平台上是否有需要推广的更改?

如何知道Heroku管道平台上是否有需要推广的更改?,heroku,heroku-pipelines,Heroku,Heroku Pipelines,我的目标是编写一个脚本,将Heroku管道中的“stage”应用程序推广到生产中,但前提是有任何需要推广的更改 我可以通过以下方式进行无问题推广: // POST /pipeline-promotions { "pipeline": { "id": "<pipeline-id>" }, "source": { "app": {

我的目标是编写一个脚本,将Heroku管道中的“stage”应用程序推广到生产中,但前提是有任何需要推广的更改

我可以通过以下方式进行无问题推广:

// POST /pipeline-promotions
{
    "pipeline": {
        "id": "<pipeline-id>"
    },
    "source": {
        "app": {
            "id": "<stage-app-id>"
        }
    },
    "targets": [
        {
            "app": {
                "id": "<production-id>"
            }
        }
        
    ]
}
//发布/管道促销
{
“管道”:{
“id”:”
},
“来源”:{
“应用程序”:{
“id”:”
}
},
“目标”:[
{
“应用程序”:{
“id”:”
}
}
]
}
我的问题是,如果我执行此操作,并且没有任何更改,发布操作仍然会在生产应用程序上启动

换句话说,我如何确定是否有任何更改可用于升级-就像heroku在其GUI中所做的那样


多亏了Heroku的支持,我才设法解决了这个问题

查看
管道//最新版本
时,可以通过比较slug id来完成

如果段塞ID相同,则没有要升级的更改