This reverts commit d7cfa7f0b2.
This commit is contained in:
committed by
GitHub
parent
1e5b3f501f
commit
d54abc3ed0
@@ -7,7 +7,6 @@ import (
|
||||
|
||||
"github.com/google/go-github/v69/github"
|
||||
"github.com/mudler/LocalAgent/core/agent"
|
||||
"github.com/mudler/LocalAgent/pkg/metaform"
|
||||
"github.com/mudler/LocalAgent/pkg/xlog"
|
||||
|
||||
"github.com/sashabaranov/go-openai"
|
||||
@@ -64,51 +63,6 @@ func (g *GithubPRs) AgentReasoningCallback() func(state agent.ActionCurrentState
|
||||
}
|
||||
}
|
||||
|
||||
func (g *GithubPRs) ConfigForm() metaform.Form {
|
||||
return metaform.Form{
|
||||
Fields: []metaform.Field{
|
||||
{
|
||||
Kind: metaform.FieldString,
|
||||
Name: "token",
|
||||
Label: "GitHub Token",
|
||||
Required: true,
|
||||
Placeholder: "Your GitHub personal access token",
|
||||
},
|
||||
{
|
||||
Kind: metaform.FieldString,
|
||||
Name: "owner",
|
||||
Label: "Repository Owner",
|
||||
Required: true,
|
||||
Placeholder: "username or organization",
|
||||
},
|
||||
{
|
||||
Kind: metaform.FieldString,
|
||||
Name: "repository",
|
||||
Label: "Repository Name",
|
||||
Required: true,
|
||||
Placeholder: "repo-name",
|
||||
},
|
||||
{
|
||||
Kind: metaform.FieldOptions,
|
||||
Name: "replyIfNoReplies",
|
||||
Label: "Reply Behavior",
|
||||
Required: true,
|
||||
Options: []metaform.Option{
|
||||
{Value: "true", Label: "Reply only to PRs with no comments"},
|
||||
{Value: "false", Label: "Reply to all PRs"},
|
||||
},
|
||||
},
|
||||
{
|
||||
Kind: metaform.FieldString,
|
||||
Name: "pollInterval",
|
||||
Label: "Poll Interval",
|
||||
Required: true,
|
||||
Placeholder: "10m",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func (g *GithubPRs) Start(a *agent.Agent) {
|
||||
// Start the connector
|
||||
g.agent = a
|
||||
|
||||
Reference in New Issue
Block a user