Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions actions/setup/js/assign_agent_helpers.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ async function assignAgentToIssue(assignableId, agentId, currentAssignees, agent
`;

variables = {
assignableId: assignableId,
assignableId,
actorIds,
...(pullRequestRepoId && { targetRepoId: pullRequestRepoId }),
...(model && { model }),
Expand All @@ -343,7 +343,7 @@ async function assignAgentToIssue(assignableId, agentId, currentAssignees, agent
}
`;
variables = {
assignableId: assignableId,
assignableId,
actorIds,
};
}
Expand Down
17 changes: 8 additions & 9 deletions actions/setup/js/assign_to_agent.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,23 @@ async function main() {
description: "The following agent assignments would be made if staged mode was disabled:",
items: assignItems,
renderItem: item => {
let content = "";
const parts = [];
if (item.issue_number) {
content += `**Issue:** #${item.issue_number}\n`;
parts.push(`**Issue:** #${item.issue_number}`);
} else if (item.pull_number) {
content += `**Pull Request:** #${item.pull_number}\n`;
parts.push(`**Pull Request:** #${item.pull_number}`);
}
content += `**Agent:** ${item.agent || previewDefaultAgent}\n`;
parts.push(`**Agent:** ${item.agent || previewDefaultAgent}`);
if (previewDefaultModel) {
content += `**Model:** ${previewDefaultModel}\n`;
parts.push(`**Model:** ${previewDefaultModel}`);
}
if (previewDefaultCustomAgent) {
content += `**Custom Agent:** ${previewDefaultCustomAgent}\n`;
parts.push(`**Custom Agent:** ${previewDefaultCustomAgent}`);
}
if (previewDefaultCustomInstructions) {
content += `**Custom Instructions:** ${previewDefaultCustomInstructions}\n`;
parts.push(`**Custom Instructions:** ${previewDefaultCustomInstructions}`);
}
content += "\n";
return content;
return parts.join("\n") + "\n\n";
},
});
return;
Expand Down