Git Log For PR
git_log_for_prList commits on the current branch since a base branch to generate pull request titles and descriptions.
Instructions
List commits on the current branch since the base branch, for writing a PR title/body (the aipr workflow).
If base is omitted, it is auto-detected (origin/HEAD, else main/master). Read-only.
Args:
base (string, optional): base branch/ref to compare against
repo_path (string, optional): repository path (default: server cwd)
Returns JSON: { base, count, commits: [{ sha, subject, body }] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch/ref | |
| repo_path | No | Path to the git repository. Defaults to the server's working directory. |