Skip to content

Commit

Permalink
Make GitHub base URL configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
gudmdharalds committed Sep 21, 2020
1 parent 7b37cfe commit a32cfde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
define( 'VIPGOCI_GITHUB_ERROR_STR', 'GitHub API communication error. ' .
'Please contact a human.' );

define( 'VIPGOCI_GITHUB_BASE_URL', 'https://api.github.com' );
/* Define if not defined. Unit-tests can define this for testing. */
if ( ! defined( 'VIPGOCI_GITHUB_BASE_URL' ) ) {
define( 'VIPGOCI_GITHUB_BASE_URL', 'https://api.github.com' );
}

define( 'VIPGOCI_INFORMATIONAL_MESSAGE',
'This bot provides automated ' .
Expand Down

0 comments on commit a32cfde

Please sign in to comment.