Merge pull request #254 from antoniogonzalezsuarez/feature/fix_f_string_diff_url

Add {} to fix f-string
This commit is contained in:
Alastair Mooney 2024-12-16 19:17:01 +00:00 committed by GitHub
commit 8e25063c43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,7 @@ class GitHubClient(Client):
pr_search = re.search(pr_url_pattern, diff_url)
if pr_search:
pr_number = pr_search.group(1)
diff_url = f'self.repos_url{self.repo}/pulls/{pr_number}'
diff_url = f'{self.repos_url}{self.repo}/pulls/{pr_number}'
elif self.before != '0000000000000000000000000000000000000000':
# There is a valid before SHA to compare with, or this is a release being created.
diff_url = f'{self.repos_url}{self.repo}/compare/{self.before}...{self.sha}'