Skip to content

Commit

Permalink
Update GitHubClient.py
Browse files Browse the repository at this point in the history
Add server URL to GitHub Client

Resolve conflict in #218
  • Loading branch information
alstr authored Nov 5, 2024
1 parent 3ba2647 commit 1484e53
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions GitHubClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ def __init__(self):
self.line_break = '\n\n' if auto_p else '\n'
self.auto_assign = os.getenv('INPUT_AUTO_ASSIGN', 'false') == 'true'
self.actor = os.getenv('INPUT_ACTOR')
if self.base_url == 'https://api.github.com/':
self.line_base_url = 'https://github.com/'
else:
self.line_base_url = self.base_url
self.line_base_url = os.getenv('INPUT_GITHUB_SERVER_URL')
if not self.line_base_url.endswith('/'):
self.line_base_url += '/'
self.project = os.getenv('INPUT_PROJECT', None)
# Retrieve the existing repo issues now so we can easily check them later.
self._get_existing_issues()
Expand Down

0 comments on commit 1484e53

Please sign in to comment.