From 1484e53cbdc83f774b40e7bb62e519c60be6237e Mon Sep 17 00:00:00 2001 From: Alastair Mooney Date: Tue, 5 Nov 2024 09:48:38 +0000 Subject: [PATCH] Update GitHubClient.py Add server URL to GitHub Client Resolve conflict in #218 --- GitHubClient.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GitHubClient.py b/GitHubClient.py index 4e3dc28..f543601 100644 --- a/GitHubClient.py +++ b/GitHubClient.py @@ -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()