issue_fixed.py 988 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python3
  2. import shlex
  3. from subprocess import check_output
  4. import pyperclip
  5. def copy_comment():
  6. # Get commit SHA
  7. sha = check_output(shlex.split('git rev-parse --short HEAD')).decode().strip()
  8. # Copy comment to clipboard
  9. comment = f"""
  10. Thank you for reporting the issue!
  11. 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.
  12. [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.
  13. Read the ["Running Updated Original Neofetch" section](https://github.com/hykilpikonna/hyfetch#running-updated-original-neofetch) for more info!
  14. """
  15. pyperclip.copy(comment.strip())
  16. print()
  17. print('Comment response copied to clipboard.')
  18. if __name__ == '__main__':
  19. copy_comment()