Travis CI 无法识别重命名的存储库

Dou*_*oug 3 continuous-integration heroku command-line-interface travis-ci

所以我最初命名了我的 github repo my_repo,但my-repo在创建后不久就重命名了,就像在第一天一样。这是大约一年前的事情。

从那以后,我一直在使用免费的 .org 版本使用 Travis CI 构建项目。现在,在将我的所有存储库设为私有并使用 travis-ci.com 升级到专业版之后,我不得不在我的 .travis.yml 中提供新的 API 凭据。所以我必须这样做

travis encrypt $(heroku auth:token) --add deploy.api_key --pro
Run Code Online (Sandbox Code Playgroud)

这适用于其他存储库,但不是这个特定的存储库。相反,我得到

repository not known to https://api.travis-ci.com/: dben89x/my_repo
Run Code Online (Sandbox Code Playgroud)

但是,在我的 Travis CI 仪表板上,它试图将其构建为dben89x/my-repo. 我不确定如何告诉 travis 将其构建为dben89x/my-repo.

我所有的 git 遥控器都设置为my-repo. 我尝试在 CLI 中注销并重新登录。

Dou*_*oug 6

I found the answer here: https://github.com/travis-ci/travis-ci/issues/3264#issuecomment-180246348

Went into .git/config and changed

[travis]
  slug = dben89x/my_repo
Run Code Online (Sandbox Code Playgroud)

to

[travis]
  slug = dben89x/my-repo
Run Code Online (Sandbox Code Playgroud)