Skip to content

Commit

Permalink
Merge pull request #103 from ruffsl/travis
Browse files Browse the repository at this point in the history
Adjusting private variables to be optional
  • Loading branch information
ruffsl authored Nov 2, 2017
2 parents edcfaef + 7e47cbf commit 9b0642f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis/travis.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def main(argv=sys.argv[1:]):
print("GIT_PULL_REQUEST_BRANCH: ", GIT_PULL_REQUEST_BRANCH)

# Private environment variables, not available for pull requests from forks
GIT_USER = os.environ['GITHUB_USER']
GIT_EMAIL = os.environ['GITHUB_EMAIL']
GIT_TOKEN = os.environ['GITHUB_TOKEN']
GIT_USER = os.environ.get('GITHUB_USER','')
GIT_EMAIL = os.environ.get('GITHUB_EMAIL','')
GIT_TOKEN = os.environ.get('GITHUB_TOKEN','')
GIT_AUTHOR = "{user} <{email}>".format(user=GIT_USER, email=GIT_EMAIL)
GIT_ORIGIN_REPO_SLUG = GIT_USER + '/' + \
GIT_UPSTREAM_REPO_SLUG.split('/')[1]
Expand Down

0 comments on commit 9b0642f

Please sign in to comment.