content:"You are a helpful assistant that generates clear, concise, and descriptive pull request titles. Follow conventional commit message style. Return ONLY the new title, nothing else."
content:"You are a helpful assistant that generates clear, concise, and descriptive pull request titles based on code changes. Follow conventional commit message style (e.g., 'feat:', 'fix:', 'refactor:', 'docs:', etc.). Return ONLY the new title, nothing else."
},
{
role:"user",
content: `Based on this pull request content, generate a better title.\n\nCurrent title:${pr.title}\n\nDescription: ${pr.body}\n\nChanges:\n${diff}`
content:`Based on these file changes, generate a descriptive PR title:\n\n${fileChanges.join('\n\n')}`
}
],
temperature:0.7,
@ -154,7 +168,7 @@ jobs:
owner:event.repository.owner.login,
repo:event.repository.name,
issue_number:issueNumber,
body: `✨ Updated PR title to:"${newTitle}"`
body: `✨ Updated PR title to:"${newTitle}"\n\nBased on the following changes:\n\`\`\`diff\n${fileChanges.join('\n')}\n\`\`\``