Update GitHubClient.py

Add server URL to GitHub Client

Resolve conflict in #218
This commit is contained in:
Alastair Mooney 2024-11-05 09:48:38 +00:00 committed by GitHub
parent 3ba2647ea6
commit 1484e53cbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,10 +35,9 @@ class GitHubClient(Client):
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()