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
+2
View File
@@ -53,3 +53,5 @@ Fränky and repos on gitea.schwenk.online where the `cursor` bot user is a colla
- Parse event context from `GITHUB_EVENT_PATH` with `jq` — do not rely on undocumented `gitea.event.*` template fields in shell scripts.
- Install Cursor CLI and gitea-mcp only when `@cursor` fires and only if not already present on the runner.
- Gitea secret names cannot start with `GITEA_` or `GITHUB_` — use `CURSOR_BOT_TOKEN` for the bot token, not `GITEA_TOKEN`.
- `push_to_default_branch` (`"true"` / `"false"`, default `"false"`): playground repos may push directly to the default branch; production repos keep PR-only behavior.
- `agent_timeout` (default `5m`): caps Cursor agent runtime via `timeout`; raise for long tasks (e.g. `30m`).