feat(forgejo): link an implementer session to its pull request #48
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lucas/omp-deck!48
Loading…
Reference in a new issue
No description provided.
Delete branch "46-forgejo-link-implementer-session-to-its-pull-request-implementer-split-2-3"
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?
An implementer session now opens at most one pull request, and a resumed session is told which pull request it already opened. This builds on split 1/3 (#47):
forgejo_sessionsalready records the PR an implementer session opens, and that mapping drives the comment policy and the dispatcher's routing of PR mentions.listForgejoSessionNumbers(repo, sessionId)(new) lists the numbers mapped to a session. An implementer's PRs are those numbers minus its issue.forgejo_create_pris denied once a PR is mapped to the session:this session already opened pull request #N; push further commits to its branch instead.systemContext/policySystemContexttake the session id (null while the session is being created). On resume, the implementer orientation names the linked PR and says not to open another.Decisions
forgejo_sessions, not in the trigger scope, so the originalpullNumberfield and theforgejo_create_prwrapper are dropped.forgejo_create_prresult.Verification
cd apps/server && bun test src/bridge/session-policy.test.ts src/db/forgejo-sessions.test.ts src/forgejo/dispatcher.test.ts: 57 pass, 0 fail. This includes the existing dispatcher test where mentions on the issue and on the PR it opened continue the implementer session.bun run typecheck(protocol, server, web): clean.Closes #46