繁体   English   中英

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

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

我正在尝试为 Bitbucket Cloud 设置config.json以自动更新 npm 存储库中的依赖项 Z3B06ADACCEC858Z39426BBCED386DF Cloud. 我找到了一个例子,但无法弄清楚两件事:

  1. 端点 - go 应该有什么(ABC)? - 我们公司的 bitbucket 命名空间链接如下: https://bitbucket.org/uvxyz/

  2. 我可以使用 renovate-bot 在没有 bitbucket 管道的情况下发布 PR 吗? 如果是这样,我可以通过 config.json mods 进行更新以仅更新特定的 repo 或 repos,或者我将renovate.json文件放在需要自动依赖更新的每个 repo 中?

感谢有关后者的任何示例。

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>"
    }
  ]
};

根据代码:

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

有一个默认值,它适用于我而无需设置您在文档中看到的就是您所需要的

将以下配置放入其 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-密码/

暂无
暂无

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

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