Skip to main content

What have I done - Summarizer for Your GitHub Pull Request Activities

Project description

gh-whid

Use ChatGPT to summarize your work on a daily or weekly basis. 使用ChatGPT来生成你的日报和周报。

whid stands for "What Have I done". This tool is to summarize your latest work on GitHub based on your Pull Request description with ChatGPT.

Usage

  1. Create a personal access token according to the GitHub documentation.

  2. Create an OpenAI secret key via this account page.

  3. Install and run

# installation
pip install gh-whid

# generate work summary for today
whid

# generate work summary for the last n days
# a large value for n might lead to ChatGPT request rejected
# as it exceeds the max number of tokens allowed for prompt
whid -d n

The credentials are stored in ~/.cache/whid/credentials.json, do take care of this file and set expiry date on your credentials.

Sample output will be like:

===== ChatGPT Output =====
Summary:

- Updated the README
- Added an OpenAI Query demo
- Added a command line tool
- Added the release to PyPI workflow
- Updated the documentation
- Updated the release workflow

总结:

1. 更新README
2. 添加OpenAI查询演示
3. 添加命令行工具
4. 添加发布到PyPI的工作流
5. 更新文档
6. 更新发布工作流

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gh-whid-0.0.4.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file gh-whid-0.0.4.tar.gz.

File metadata

  • Download URL: gh-whid-0.0.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for gh-whid-0.0.4.tar.gz
Algorithm Hash digest
SHA256 84d95b96b76f60908cd55af77ec9e330d62614b92ddd294add9db8264c29b729
MD5 64eb44291ce7530e273f7eaf7f62218e
BLAKE2b-256 e828700635a69e5ce370835c1939eceaa05c92102806f9939aa9aee8159c7be2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page