A CLI tool that automatically fixes and merges GitHub PRs using AI agents
Project description
English | 日本語
autoland
A CLI tool that automatically fixes and merges GitHub PRs using AI agents
Features
- Automatic detection and processing of open PRs
- Waiting for GitHub checks completion
- Automatic fixes for review comments using AI agents
- Automatic commit and push of fixes
- Automatic merge decision and execution
Installation
pipx install autoland
Please refer to https://pipx.pypa.io/latest/installation/ for pipx installation.
Prerequisites
The following tools must be set up:
gh(GitHub CLI)codexcommand (AI coding tool)- Execution in a Git repository
Usage
Run in the target repository directory:
autoland
Workflow
- PR Detection: Selects the oldest open PR and checks out to the corresponding branch
- Checks Waiting: Waits for GitHub checks to complete
- Auto-fix: AI agent analyzes review comments and executes necessary fixes
- Push Changes: Commits fixes and posts a processing report as a comment
- Re-check: Checks for new comments and determines merge eligibility
- Execute Merge: Automatically merges if there are no issues
flowchart TD
Start(["Start"]) --> Use[["Usage<br>Run in target repository: <code>autoland</code>"]]
subgraph CLI["Process performed by CLI tool"]
direction TB
C0{"Are there any open PRs?"}
C1["Select oldest open PR and<br>checkout to corresponding branch"]
C2["Wait for GitHub checks to complete"]
C3["Launch fixing agent and<br>pass PR context"]
C6["Post agent-generated report<br>as PR comment"]
C4{"Did agent add commits?"}
C5["push"]
C8["Merge PR"]
end
subgraph AG["Coding Agent"]
direction TB
A1["Analyze context"]
A2{"Are there any issues?"}
A3["Implement necessary fixes and commit"]
A4_fix["Output result report (fix details)"]
A4_ok["Output result report (no issues)"]
A_OUT["Report"]
end
Use --> C0
C0 -- Yes --> C1 --> C2
C0 -- No --> End(["End"])
C2 --> C3 --> A1 --> A2
A2 -- Yes --> A3 --> A4_fix --> A_OUT
A2 -- No --> A4_ok --> A_OUT
A_OUT --> C6
C6 --> C4
C4 -- No (mergeable) --> C8 --> End
C4 -- Yes (has changes to push) --> C5 --> C2
Design Principles
- CLI does not manage authentication credentials, leverages existing tools
- Complex decisions are delegated to AI, only mechanical decisions are implemented on the CLI side
- Timestamped log output for long-running operations
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autoland-0.1.0.tar.gz.
File metadata
- Download URL: autoland-0.1.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
365e5a17edb6bbed6db9c684f72ab591b17dd579cdaaedb2a7936210c59db974
|
|
| MD5 |
ab9409a60e8f5758f74890b195dae791
|
|
| BLAKE2b-256 |
b9b827a3bd7ae60ec8dc016557a63d7b21398eccb84c4ecedc302e4d8ab31120
|
File details
Details for the file autoland-0.1.0-py3-none-any.whl.
File metadata
- Download URL: autoland-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
496ce624de131a8d30b6f12b540363271f9046c6c2aa7101dfaa744a373df2f7
|
|
| MD5 |
c5f357a97f9c634eea0eb59bfd88ff1d
|
|
| BLAKE2b-256 |
bb110f13492aae3f9257d4a178fc9a2d886b91fab55b274388729c76220281ed
|