Summarize GitHub pull requests and commits using OpenAI
- PHP >= 8.1
Install GitHub summarizer via the below command:
composer global require stevebauman/github-summarizer
GitHub 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/framework
List all closed PR's for selection:
summarize pr laravel/framework --state=closed
Summarize a specific PR by its number:
summarize pr laravel/framework 1234
Summarize a specific PR by its number responding in a "commit" style:
summarize pr laravel/framework 1234 --style=commit
Summarize a GitHub commit or range of commits:
summarize commit {org}/{repo} {sha} {--from=} {--to=} {--style=changelog}
List recent commits to summarize:
summarize commit laravel/framework
List recent commits in a specific branch to summarize:
summarize commit laravel/framework --branch=10.x
Summarize a specific commit:
summarize commit laravel/framework {sha}
Summarize a specific commit responding in a "commit" style:
summarize commit laravel/framework {sha} --style=commit
Summarize a range of commits from the tagged version to master
:
summarize commit laravel/framework --from=v10.0.1
Summarize a range of commits from the tagged version to another tagged version:
summarize commit laravel/framework --from=v10.0.1 --to=v10.0.2
Summarize 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}