简体   繁体   English

无法从 bitbucket 管道创建拉取请求

[英]can't create pull request from bitbucket pipelines

I want to set up a step in my pipelines where I can automatically raise a pull request from develop branch to master branch (as part of the release process).我想在我的管道中设置一个步骤,我可以在其中自动提出从开发分支到主分支的拉取请求(作为发布过程的一部分)。 However, I cannot seem to find the solution when using with this REST API pull request .但是,与REST API pull request 一起使用时,我似乎找不到解决方案。 The problem, is because the curl command is running in pipelines environment with bitbucket-pipelines user, and I have no idea what is the password for this user.问题是因为 curl 命令正在使用 bitbucket-pipelines 用户在管道环境中运行,我不知道该用户的密码是什么。 is this something even possible?这甚至可能吗? like does bitbucket provide its pipelines user password ?就像 bitbucket 提供它的管道用户密码一样吗? I couldn't find anywhere.我找不到任何地方。

You will need to create an App password for the user that is supposed to raise the pull request.您需要为应该提出拉取请求的用户创建一个应用程序密码。 ( https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html ) You can then inject username and password as a variable into pipelines. ( https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html ) 然后您可以将用户名和密码作为变量注入管道。 https://confluence.atlassian.com/bitbucket/variables-in-pipelines-794502608.html Make sure to make that variable a secured variable so the password can't be viewed! https://confluence.atlassian.com/bitbucket/variables-in-pipelines-794502608.html确保将该变量设置为安全变量,以便无法查看密码!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM