Add github actions:

This commit is contained in:
mudler
2024-04-11 13:05:35 +02:00
parent d237e17719
commit fa39ae93f1
4 changed files with 193 additions and 7 deletions

View File

@@ -86,11 +86,12 @@ func (g *GithubIssues) issuesService() {
if issue.IsPullRequest() {
continue
}
userName := *issue.User.Name
messages := []openai.ChatCompletionMessage{
{
Role: "system",
Content: fmt.Sprintf("This is a conversation with an user that opened a Github issue with title '%s'.", issue.GetTitle()),
Role: "system",
Content: fmt.Sprintf(
`This is a conversation with an user ("%s") that opened a Github issue with title "%s" in the repository "%s" owned by "%s" .`, userName, issue.GetTitle(), g.repository, g.owner),
},
{
Role: "user",