Skip to content

Commit

Permalink
Merge pull request #150 from pygmypenguin/fix/update-code-link
Browse files Browse the repository at this point in the history
update url-to-line for enterprise
  • Loading branch information
alstr authored Mar 3, 2023
2 parents 3278254 + 564f192 commit 9e859df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def create_issue(self, issue):
# Title is too long.
title = title[:80] + '...'
formatted_issue_body = self.line_break.join(issue.body)
url_to_line = f'https://github.com/{self.repo}/blob/{self.sha}/{issue.file_name}#L{issue.start_line}'
url_to_line = f'{self.base_url}{self.repo}/blob/{self.sha}/{issue.file_name}#L{issue.start_line}'
snippet = '```' + issue.markdown_language + '\n' + issue.hunk + '\n' + '```'

issue_template = os.getenv('INPUT_ISSUE_TEMPLATE', None)
Expand Down

0 comments on commit 9e859df

Please sign in to comment.