[+] Fix issue template

This commit is contained in:
Hykilpikonna 2022-11-16 00:02:32 -05:00
parent f68377fead
commit 737e4afaac
No known key found for this signature in database
GPG key ID: 256CD01A41D7FA26

28
tools/issue_fixed.py Normal file
View file

@ -0,0 +1,28 @@
#!/usr/bin/env python3
import shlex
from subprocess import check_output
import pyperclip
def copy_comment():
# Get commit SHA
sha = check_output(shlex.split('git rev-parse --short HEAD')).decode().strip()
# Copy comment to clipboard
comment = f"""
Thank you for reporting the issue!
This issue is [fixed in hyfetch by commit {sha}](https://github.com/hykilpikonna/hyfetch/commit/{sha}). This repo (dylanaraps/neofetch) seems to be no longer maintained.
[HyFetch](https://github.com/hykilpikonna/hyfetch) is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many issues and pull requests.
Read the ["Running Updated Original Neofetch" section](https://github.com/hykilpikonna/hyfetch#running-updated-original-neofetch) for more info!
"""
pyperclip.copy(comment.strip())
print()
print('Comment response copied to clipboard.')
if __name__ == '__main__':
copy_comment()