feat: assignee-driven pickup + repro proof on TDD PRs
- Issues are picked up by assigning them to the bot (tink-bot style) instead of by label; labels now only influence workflow routing - TDD: capture the failing 'go test' output after the repro stage (parking if it unexpectedly passes) and post it on the PR as a code block — evidence the bug was reproduced before the fix - TDD fix stage now write-protects *_test.go via agentloop.ProtectPaths (environmental enforcement, replacing the advisory prompt rule) - OpenPR extracted so stages can act after the PR exists in the same stage (the engine stops at the first stage with an outcome)
This commit is contained in:
1 parent
5465442cb3
commit
94a58e11b6
6 files changed
+74
-22
No files matched your search
@@ -38,12 +38,14 @@ func (c *Client) AcceptInvitations(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// LabelledIssues returns open issues carrying the label, excluding PRs.
|
||||
func (c *Client) LabelledIssues(ctx context.Context, owner, repo, label string) ([]*github.Issue, error) {
|
||||
// AssignedIssues returns open issues assigned to the given user,
|
||||
// excluding PRs. Assigning an issue to the bot is how work is handed to
|
||||
// archie (tink-bot style); labels only influence workflow routing.
|
||||
func (c *Client) AssignedIssues(ctx context.Context, owner, repo, assignee string) ([]*github.Issue, error) {
|
||||
var out []*github.Issue
|
||||
opts := &github.IssueListByRepoOptions{
|
||||
State: "open",
|
||||
Labels: []string{label},
|
||||
Assignee: assignee,
|
||||
ListOptions: github.ListOptions{PerPage: 50},
|
||||
}
|
||||
for {
|
||||
|
||||
Reference in new issue
Block a user