Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/github/__toolsnaps__/actions_run_trigger.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"properties": {
"inputs": {
"description": "Inputs the workflow accepts. Only used for 'run_workflow' method.",
"properties": {},
"type": "object"
},
"method": {
Expand Down
9 changes: 4 additions & 5 deletions pkg/github/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ func ActionsRunTrigger(t translations.TranslationHelperFunc) inventory.ServerToo
"inputs": {
Type: "object",
Description: "Inputs the workflow accepts. Only used for 'run_workflow' method.",
Properties: map[string]*jsonschema.Schema{},
},
"run_id": {
Type: "number",
Expand Down Expand Up @@ -574,11 +575,9 @@ func ActionsRunTrigger(t translations.TranslationHelperFunc) inventory.ServerToo
runID, _ := OptionalIntParam(args, "run_id")

// Get optional inputs parameter
var inputs map[string]any
if requestInputs, ok := args["inputs"]; ok {
if inputsMap, ok := requestInputs.(map[string]any); ok {
inputs = inputsMap
}
inputs, err := OptionalParam[map[string]any](args, "inputs")
if err != nil {
return utils.NewToolResultError(err.Error()), nil, nil
}
Comment thread
kerobbi marked this conversation as resolved.

// Validate required parameters based on action type
Expand Down
Loading