Let workflows merge or discard their own tasks
This commit is contained in:
@@ -745,6 +745,8 @@ const workflowDefinitionSchema = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {"type": "string"},
|
||||
"auto_merge": {"type": "boolean"},
|
||||
"auto_discard": {"type": "boolean"},
|
||||
"steps": {"type": "array", "items": {"$ref": "#/$defs/step"}}
|
||||
},
|
||||
"required": ["steps"],
|
||||
@@ -892,7 +894,7 @@ func (m *Manager) workflowTools(tool func(name, description, schema string, run
|
||||
|
||||
tool("set_audit_workflow",
|
||||
"Set the audit workflow (any saved workflow) that byre runs in the background on a project's default branch: one run at a time, started whenever the branch's newest commit hasn't had one, to check the whole codebase against its standards rather than one change. "+
|
||||
"An audit's tasks stay out of list_tasks and your signals until one asks a question, calls ready_for_merge or hits an error; one that suggests discarding first is discarded by byre. An empty workflow turns audits off. Only when the human asks.",
|
||||
"An audit's tasks stay out of list_tasks and your signals until one asks a question, calls ready_for_merge, hits an error, or suggests discarding in a workflow without auto_discard. An empty workflow turns audits off. Only when the human asks.",
|
||||
`{"type": "object", "properties": {
|
||||
"project_id": {"type": "string"},
|
||||
"workflow": {"type": "string"}
|
||||
|
||||
Reference in New Issue
Block a user