allow slackbot to function from local environment

This commit is contained in:
Ron Rennick 2021-03-31 10:00:42 -03:00
parent 09b5fb4691
commit a720f00a2d
1 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,11 @@ const initializeSlack = () => {
return false;
}
if ( ! GITHUB_ACTIONS && ! TRAVIS_PULL_REQUEST_BRANCH ) {
return false;
return {
branch: 'local environment',
commit: 'latest',
webUrl: 'http:://localhost',
};
}
// Build PR info
if ( GITHUB_ACTIONS ) {