Skip to main content

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. 更新发布工作流

Metadata

Release files for gh-whid 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gh-whid 0.0.4
File Size Uploaded Provenance Actions
gh-whid-0.0.4.tar.gz 5.8 kB Without provenance Details for gh-whid-0.0.4.tar.gz

Release files / gh-whid-0.0.4.tar.gz

Download URL gh-whid-0.0.4.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
84d95b96b76f60908cd55af77ec9e330d62614b92ddd294add9db8264c29b729
BLAKE2b-256 checksum
How to use checksums
e828700635a69e5ce370835c1939eceaa05c92102806f9939aa9aee8159c7be2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Security for gh-whid 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page