Some cleanup
This commit is contained in:
parent
d3386d4a58
commit
4f44943d90
7 changed files with 90 additions and 19 deletions
|
|
@ -159,15 +159,10 @@ func (a *AnthropicSummarizer) Summarize(fullPrompt string) (string, error) {
|
|||
}
|
||||
|
||||
// buildPrompt constructs the prompt string from PRs, issues, and tasks
|
||||
func buildPrompt(employeename string, prs map[string][]contributions.PullRequest, issues []issues.Issue, tasks []vikunja.Task, prompt string) string {
|
||||
func buildPrompt(employeename string, prs contributions.PRMap, issues []issues.Issue, tasks []vikunja.Task, prompt string) string {
|
||||
// Build a prompt string
|
||||
fullPrompt := prompt + fmt.Sprintf("\n\nHere's the PRs and Tickets for the employee %s:\n\n", employeename)
|
||||
for repo, prList := range prs {
|
||||
fullPrompt += fmt.Sprintf("Repository: %s\n", repo)
|
||||
for _, pr := range prList {
|
||||
fullPrompt += pr.String()
|
||||
}
|
||||
}
|
||||
fullPrompt += prs.String()
|
||||
fullPrompt += "Issues:\n"
|
||||
for _, issue := range issues {
|
||||
fullPrompt += fmt.Sprintf("Summary: %s\n", issue.Summary)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue