jcode pr
Synopsis
jcode pr ID --issue N [--dry-run]
Description
Puts the commits of the agent ID on GitHub as a pull request. The command runs on this machine, with your git and gh. A cloud instance gets no GitHub credential: its commits come back as the branch jcode/ID, and this command pushes them.
- It checks the commits after the base of the agent. Each author and committer must be the git identity of the work folder (
user.name,user.email). No commit text may have an attribution line, such asCo-Authored-By. No file may be binary or generated, such as a file belowzig-out/. - It pushes
jcode/IDtooriginasjcode/N-SLUG. SLUG comes from the title of issue N. - It runs
gh pr createwith the subject of the first commit as the title, the labelergo, and the milestone of the issue. The body has the report of the agent, a section "Cost" (minutes, instance USD, model USD, tokens), andFixes #N.
--dry-run prints the branch, the arguments of gh, and the body, and pushes nothing.
| Option | Description |
|---|---|
--issue N |
The issue that the request fixes, in the repository of origin. |
--dry-run |
Shows the plan. No push, no request. |
Errors
| Message | Cause |
|---|---|
pr needs --issue N |
No --issue. |
no branch jcode/ID in DIR: the agent has no result |
The agent made no commit, or its job did not end. |
the branch jcode/ID cannot go out: … |
A check failed. Each line names the commit or the file. |
the remote origin of DIR is not on GitHub: URL |
origin is not a GitHub repository. |