mandeep/Travis-Encrypt

travis-ci.com support

Closed this issue · 3 comments

As of May 2018 all new projects must be on travis-ci.com. Apis for .org won't work on these projects. Need to add "--org/--com" options to the command line tool, and/or try twice (falling back to legacy?).

See: https://blog.travis-ci.com/2018-05-02-open-source-projects-on-travis-ci-com-with-github-apps

Hi @earonesty, I'm not sure I understand. The blog is dated from last year but the .org domain still seems to work. Are you seeing problems with the .org API?

I realize now that travis-encrypt only works for open source projects, and if we want to access .com projects we need an option for this.

So as to not break the encrypt.py API, I think we need to add another function that does the same thing as retrieve_public_key but for the .com API endpoint. Or we can add a keyword argument with a default url of .org.

def retrieve_public_key(user_repo):