feat: add push_to_default_branch and agent_timeout inputs

Playground repos can push directly to the default branch instead of opening PRs; agent runtime is configurable (default 5m).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Frank Schwenk
2026-07-05 15:54:43 +02:00
parent 893d7bec1e
commit 239e110b72
4 changed files with 61 additions and 12 deletions
+10
View File
@@ -14,6 +14,14 @@ inputs:
description: Cursor model id
required: false
default: composer-2.5
push_to_default_branch:
description: When true, commit and push directly to the default branch instead of opening a PR
required: false
default: "false"
agent_timeout:
description: Maximum runtime for the Cursor agent (timeout duration, e.g. 5m, 30m)
required: false
default: 5m
runs:
using: composite
@@ -39,5 +47,7 @@ runs:
GITEA_ACCESS_TOKEN: ${{ inputs.gitea_token }}
GITEA_BASE_URL: ${{ inputs.gitea_base_url }}
AI_MODEL: ${{ inputs.ai_model }}
PUSH_TO_DEFAULT_BRANCH: ${{ inputs.push_to_default_branch }}
AGENT_TIMEOUT: ${{ inputs.agent_timeout }}
run: |
"$GITHUB_ACTION_PATH/scripts/run-cursor.sh"