We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The issue reference linkification logic of the scripts/linkify_release_notes.py is wrongly implemented.
scripts/linkify_release_notes.py
It can be fixed with the below snippet:
def replace_issue_reference(match: re.Match) -> str: issue_number = match.groups()[0] issue_link = ( f" [#{issue_number}]" f"(https://github.com/TheHive-Project/TheHive4py/issues/{issue_number})" ) print(f"Replace `{match.group()}` by `{issue_link}`") return issue_link def linkify_issue_references(release_notes: str) -> str: issue_ref_pattern = r" #(\d+)" linkified_release_notes = re.sub( pattern=issue_ref_pattern, repl=replace_issue_reference, string=release_notes, ) return linkified_release_notes
The text was updated successfully, but these errors were encountered:
Kamforka
No branches or pull requests
The issue reference linkification logic of the
scripts/linkify_release_notes.py
is wrongly implemented.It can be fixed with the below snippet:
The text was updated successfully, but these errors were encountered: