From 737e4afaac78df0c58ababebc3712a0dc1644211 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 16 Nov 2022 00:02:32 -0500 Subject: [PATCH] [+] Fix issue template --- tools/issue_fixed.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tools/issue_fixed.py diff --git a/tools/issue_fixed.py b/tools/issue_fixed.py new file mode 100644 index 00000000..83d85e95 --- /dev/null +++ b/tools/issue_fixed.py @@ -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()