File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 "agents" : {
1313 "iloom-issue-analyzer" : { "model" : " opus" },
1414 "iloom-issue-planner" : { "model" : " opus" , "review" : true },
15- "iloom-issue-analyze-and-plan" : { "model" : " opus" },
15+ "iloom-issue-analyze-and-plan" : { "model" : " opus" , "review" : true },
1616 "iloom-issue-implementer" : { "model" : " opus" },
1717 "iloom-code-reviewer" : { "providers" : { "gemini" : " gemini-3-pro-preview" } },
1818 "iloom-artifact-reviewer" : { "enabled" : true , "providers" : { "gemini" : " gemini-3-pro-preview" } }
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ vi.mock('./PRManager.js', () => {
125125 PRManager : class MockPRManager {
126126 createDraftPR = mockCreateDraftPR
127127 checkForExistingPR = mockCheckForExistingPR
128+ issuePrefix = '#'
128129 } ,
129130 }
130131} )
@@ -530,7 +531,7 @@ describe('LoomManager', () => {
530531 expect ( mockCreateDraftPR ) . toHaveBeenCalledWith (
531532 expect . any ( String ) , // branch name
532533 'Test Linear Issue' , // PR title from issue
533- expect . stringContaining ( 'PR for issue ' ) , // PR body
534+ expect . stringContaining ( 'Fixes #123 ' ) , // PR body with Fixes keyword and issue prefix
534535 expectedPath // worktree path
535536 )
536537
Original file line number Diff line number Diff line change @@ -276,9 +276,13 @@ export class LoomManager {
276276 // For issue mode: use issue title and reference issue number
277277 // For branch mode: use branch name and generic description
278278 const prTitle = issueData ?. title ?? `Work on ${ branchName } `
279- const prBody = input . type === 'issue'
280- ? `PR for issue #${ input . identifier } \n\nThis PR was created automatically by iloom.`
281- : `Branch: ${ branchName } \n\nThis PR was created automatically by iloom.`
279+ let prBody : string
280+ if ( input . type === 'issue' ) {
281+ const issueBody = issueData ?. body ? `\n\n## ${ issueData . title } \n\n${ issueData . body } ` : ''
282+ prBody = `Fixes ${ prManager . issuePrefix } ${ input . identifier } ${ issueBody } \n\n---\n*This PR was created automatically by iloom.*`
283+ } else {
284+ prBody = `Branch: ${ branchName } \n\n---\n*This PR was created automatically by iloom.*`
285+ }
282286
283287 // Create draft PR
284288 getLogger ( ) . info ( 'Creating draft PR...' )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export class PRManager {
2525 /**
2626 * Get the issue prefix from the configured provider
2727 */
28- private get issuePrefix ( ) : string {
28+ public get issuePrefix ( ) : string {
2929 const providerType = this . settings . issueManagement ?. provider ?? 'github'
3030 const provider = IssueManagementProviderFactory . create ( providerType )
3131 return provider . issuePrefix
You can’t perform that action at this time.
0 commit comments