0

我第一次尝试在 Backstage 上开发一个简单的插件。我以为我正确安装和配置了一切

Unable to find a publisher for URL: https://github.com/my_name/my_repo. Please make sure to register this host under an integration in app-config

所以,repo 存在,我的 github 令牌在.env文件中,the app-config.yaml是默认的,其中 github、gitlab、bitbucket 和 azure 已经存在并在该integrations部分中配置。

奇怪的是错误发生在 中plugins/scaffolder-backend/src/scaffolder/stages/publish/publishers.ts,如果我尝试打印this.publisherMap,地图中只存在 bitbucket.org。不知何故,它不加载 gitlab、github 或其他任何东西。

我究竟做错了什么?

4

1 回答 1

1

通过像这样运行后端来解决:

sudo GITHUB_TOKEN=<token> yarn start
于 2021-06-12T09:39:18.980 回答