Let sessions on agent-authored PRs push to their head branch #62
No reviewers
Labels
No labels
Agent
Ignore
Agent
In Progress
Agent
Planned
Agent
Planning
Agent
Ready
Agent
Triage
Compat
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lucas/omp-deck!62
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/issue-61-own-pr-implementer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes: #61
DispatchApi.readPullreads a PR's head branch and head/base repos.forgejo_pull_requestsession, that session is replaced. If the PR's head branch lives in another repository, the trigger fails with afork-headcomment saying why.ForgejoImplementerScope.headBranchconfines the session:git_branchmay only create or switch to the head branch (listis also allowed), andgit_pushmay only push toorigin. The prompt tells the session to create the head branch locally, act on explicit requests, and ask only when a request is ambiguous. Scopes withoutheadBranch(issue-started or older persisted ones) work as before.ownPris removed fromForgejoPullRequestScope. Those sessions now only handle PRs written by humans. Old persisted rows that still carry the field still parse.Verification:
bun test src/bridge/session-policy.test.ts src/forgejo/dispatcher.test.ts src/bridge/permission-filter.test.tspasses (98 tests) andbun run typecheckis clean. I did not run the manual end-to-end check against a live Forgejo.