Skip to content

Commit

Permalink
Use DIFF_BASE_BRANCH env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
valendesigns committed Aug 10, 2017
1 parent f891a27 commit e718fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-markdown-readme
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ try {
}
}
if ( file_exists( $readme_root . '/.coveralls.yml' ) ) {
$branch = isset( $env_vars['COVERALLS_BADGE_BRANCH'] ) ? $env_vars['COVERALLS_BADGE_BRANCH'] : 'master';
$branch = isset( $env_vars['DEFAULT_BASE_BRANCH'] ) ? $env_vars['DEFAULT_BASE_BRANCH'] : 'master';
$md_args['coveralls_url'] = "https://coveralls.io/github/$github_account_repo";
$md_args['coveralls_badge_src'] = "https://coveralls.io/repos/$github_account_repo/badge.svg?branch=$branch";
if ( isset( $coveralls_badge ) ) {
Expand Down

0 comments on commit e718fdb

Please sign in to comment.