feat(data): worktrees.pull_request_url for the company-repo draft PR

This commit is contained in:
mika kuns
2026-10-01 11:49:30 +02:00
parent 2b2f61d7fc
commit bc0aa28afb
6 changed files with 1215 additions and 0 deletions
@@ -47,6 +47,14 @@ public sealed class WorktreeRepository
/// <summary>Records a successful auto-rebase: the branch's fork point moves to the rebased-onto
/// commit and its head moves to the new tip <c>git rebase</c> produced.</summary>
/// <summary>Stores the draft PR an approve in a company repo created or reused.</summary>
public async Task SetPullRequestUrlAsync(string taskId, string url, CancellationToken ct = default)
{
await _context.Worktrees
.Where(w => w.TaskId == taskId)
.ExecuteUpdateAsync(s => s.SetProperty(w => w.PullRequestUrl, url), ct);
}
public async Task SetRebasedAsync(string taskId, string baseCommit, string headCommit, CancellationToken ct = default)
{
await _context.Worktrees