Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit a62ccca

Browse files
authored
Merge pull request #324 from xwp/feature/travis-ci-com-url
Let user set the Travis CI tld to com instead of org for public projects
2 parents 38bef68 + 5402961 commit a62ccca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/generate-markdown-readme

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ try {
104104
$md_args['travis_ci_pro_badge_src'] = $md_args['travis_ci_pro_url'] . ".svg?token=$travis_ci_pro_badge&branch=$branch";
105105
}
106106
if ( ! isset( $md_args['travis_ci_pro_url'] ) ) {
107-
$md_args['travis_ci_url'] = "https://travis-ci.org/$github_account_repo";
107+
$tld = isset( $env_vars['TRAVIS_CI_COM_URL'] ) ? 'com' : 'org';
108+
$md_args['travis_ci_url'] = "https://travis-ci.$tld/$github_account_repo";
108109
$md_args['travis_ci_badge_src'] = $md_args['travis_ci_url'] . ".svg?branch=$branch";
109110
}
110111
}

0 commit comments

Comments
 (0)