From 3e39e519dd4c141e96f4652e66e3885f7453c03f Mon Sep 17 00:00:00 2001 From: Olivier Tremblay Date: Mon, 10 Nov 2025 10:08:18 -0500 Subject: [PATCH] feat: add vikunja task support to summarize function --- cmd/acb/summarize.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/acb/summarize.go b/cmd/acb/summarize.go index 72550f5..28d2a9d 100644 --- a/cmd/acb/summarize.go +++ b/cmd/acb/summarize.go @@ -10,6 +10,7 @@ import ( "o5r.ca/autocrossbow/contributions" "o5r.ca/autocrossbow/issues" + "o5r.ca/autocrossbow/issues/vikunja" ) const defaultPrompt = `I will provide you, for a given period, with an employee name and a list of Pull Request titles and summaries split by repository, and a list of Jira Issues an employee has worked on. I may also provide, optionally, the employee's self-assessment. If I do, integrate that. @@ -18,7 +19,7 @@ I'd like you to summarize the employee's accomplishments for the quarter I'd like the summary for the accomplishments to be in prose form, in a few paragraphs separated based on areas of work. Keep answers to 500 words for the summary.` // SummarizeData takes GitHub PRs and Jira issues data and sends it to an OpenAI-compatible endpoint for summarization. -func SummarizeData(employeename string, prs map[string][]contributions.PullRequest, issues []issues.Issue) (string, error) { +func SummarizeData(employeename string, prs map[string][]contributions.PullRequest, issues []issues.Issue, tasks []vikunja.Task) (string, error) { // Build a prompt string prompt := defaultPrompt + fmt.Sprintf("\n\nHere's the PRs and Tickets for the employee %s:\n\n", employeename) for repo, prList := range prs {