Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(travis): Recognise travis-ci.com URLs #57

Closed
wants to merge 1 commit into from

Conversation

Krinkle
Copy link

@Krinkle Krinkle commented Aug 24, 2020

As the transition to travis-ci.com is nearing completion, the
legacy dot-org URLs are becoming more and more rare, which is
negatively affecting the package quality score on https://npms.io/

  • Recognise travis-ci.com URLs.
  • Recognise the site (org vs com) because otherwise the API URL that we return will not work as expected (they are different realms, not aliased!).
  • Move the canonical URL detection higher up because it is important that we parse dot-org vs dot-com correctly if it is available.

I have left the default unchanged, which means it will continue to use .org by default if the badge only contains third-party (indirect) URLs. This should probably change in the future but kept as-is for now to make the commit uncontroversial.

Fixes #56.

As the transition to travis-ci.com is nearing completion, the
legacy dot-org URLs are becoming more and more rare, which is
negatively affecting the package quality score on <https://npms.io/>

* Recognise travis-ci.com URLs.
* Recognise the site (org vs com) because otherwise the API URL
  that we return will not work as expected (they are different
  realms, not aliased!).
* Move the canonical URL detection higher up because it is
  important that we parse dot-org vs dot-com correctly if it is
  available.

Fixes IndigoUnited#56.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 55bcce0 on Krinkle:fix-travis into dfb3f8a on IndigoUnited:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 55bcce0 on Krinkle:fix-travis into dfb3f8a on IndigoUnited:master.

@Krinkle Krinkle closed this Oct 23, 2022
@Krinkle Krinkle deleted the fix-travis branch October 23, 2022 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Travis CI badges no longer detected
2 participants