Summarize GitHub pull requests and commits using OpenAI
- PHP >= 8.1
Install GitHub summarizer via the below command:
composer global require stevebauman/github-summarizerGitHub Summarizer will prompt you for an OpenAI token the first time you attempt to summarize local commits, as well as a GitHub token the first time you attempt to summarize a pull request.
Summarize local git commits in the current working directory:
summarize here {files?} {--all}Summarize a GitHub pull request:
summarize pr {org}/{repo} {--number=} {--state=open} {--style=changelog}List all open PR's for selection:
summarize pr laravel/frameworkList all closed PR's for selection:
summarize pr laravel/framework --state=closedSummarize a specific PR by its number:
summarize pr laravel/framework 1234Summarize a specific PR by its number responding in a "commit" style:
summarize pr laravel/framework 1234 --style=commitSummarize a GitHub commit or range of commits:
summarize commit {org}/{repo} {sha} {--from=} {--to=} {--style=changelog}List recent commits to summarize:
summarize commit laravel/frameworkList recent commits in a specific branch to summarize:
summarize commit laravel/framework --branch=10.xSummarize a specific commit:
summarize commit laravel/framework {sha}Summarize a specific commit responding in a "commit" style:
summarize commit laravel/framework {sha} --style=commitSummarize a range of commits from the tagged version to master:
summarize commit laravel/framework --from=v10.0.1Summarize a range of commits from the tagged version to another tagged version:
summarize commit laravel/framework --from=v10.0.1 --to=v10.0.2Summarize a range of commits:
summarize commit laravel/framework --from={sha} --to={sha}Summarize a range of commits (from the given commit to master)
summarize commit laravel/framework --from={sha}