简体   繁体   English

renovate-bot config.json 中的端点应该使用什么?

[英]What should be used for endpoint in renovate-bot config.json?

I am trying to set up config.json for Bitbucket Cloud to automatically update dependencies in npm repos of Bitbucket Cloud.我正在尝试为 Bitbucket Cloud 设置config.json以自动更新 npm 存储库中的依赖项 Z3B06ADACCEC858Z39426BBCED386DF Cloud. I found one example, but cannot figure out two things:我找到了一个例子,但无法弄清楚两件事:

  1. endpoint - what should go there (ABC)?端点 - go 应该有什么(ABC)? - our company's bitbucket namespace link looks like: https://bitbucket.org/uvxyz/ - 我们公司的 bitbucket 命名空间链接如下: https://bitbucket.org/uvxyz/

  2. Can I use renovate-bot to issue PRs without bitbucket pipelines?我可以使用 renovate-bot 在没有 bitbucket 管道的情况下发布 PR 吗? If so, can I make renovate to update only particular repo or repos via config.json mods or I shall put renovate.json file in each repo where automatic dependency update is required?如果是这样,我可以通过 config.json mods 进行更新以仅更新特定的 repo 或 repos,或者我将renovate.json文件放在需要自动依赖更新的每个 repo 中?

appreciate any examples on the latter.感谢有关后者的任何示例。

config.json: 
module.exports = {
  "platform": "bitbucket",
  "username": "<my.username>",
  "password": "<bitbucket token on my account>",
  "endpoint": "ABC",
  "hostRules": [
    {
      "hostType": "bitbucket",
      "domainName": "ABC",
      "timeout": 10000,
      "username": "<my.username>",
      "password": "<bitbucket token on my account>"
    }
  ]
};

according to the code:根据代码:

const BITBUCKET_PROD_ENDPOINT = 'https://api.bitbucket.org/';
const defaults = { endpoint: BITBUCKET_PROD_ENDPOINT };

there's a default, it works for me without setting it what you see in the documentation is all you need有一个默认值,它适用于我而无需设置您在文档中看到的就是您所需要的

I was able to get renovate working with BB after putting the following configuration into its config.js file as将以下配置放入其 config.js 文件后,我能够使用 BB 进行翻新工作

{
  hostType: 'bitbucket',
  matchHost: 'https://api.bitbucket.org/2.0/',
  username: "bb-username",
  password: "<special app password generated for bb-username>",
}

for BitBucket app passwords please look at https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/ and https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/ for BitBucket app passwords please look at https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/ and https://support.atlassian.com/bitbucket-cloud/docs/app-密码/

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

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