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.3.tar.gz (5.6 kB view hashes)

Uploaded Source

Supported by

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