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:
@@ -39,10 +39,24 @@ jobs:
|
||||
gitea_token: ${{ secrets.CURSOR_BOT_TOKEN }}
|
||||
gitea_base_url: https://gitea.schwenk.online
|
||||
ai_model: composer-2.5
|
||||
# push_to_default_branch: "false" # optional — push to default branch instead of opening a PR
|
||||
# agent_timeout: 5m # optional — max agent runtime (default 5m)
|
||||
```
|
||||
|
||||
`ai_model` is optional — it defaults to `composer-2.5` when omitted.
|
||||
|
||||
For playground repos that commit directly to the default branch (no PR workflow):
|
||||
|
||||
```yaml
|
||||
- uses: https://gitea.schwenk.online/froxxxy/cursor-gitea-agent@main
|
||||
with:
|
||||
cursor_api_key: ${{ secrets.CURSOR_API_KEY }}
|
||||
gitea_token: ${{ secrets.CURSOR_BOT_TOKEN }}
|
||||
gitea_base_url: https://gitea.schwenk.online
|
||||
push_to_default_branch: "true"
|
||||
agent_timeout: 10m
|
||||
```
|
||||
|
||||
## Action inputs
|
||||
|
||||
| Input | Required | Default | Description |
|
||||
@@ -51,6 +65,8 @@ jobs:
|
||||
| `gitea_token` | yes | — | Gitea token for the `cursor` bot user |
|
||||
| `gitea_base_url` | yes | — | Gitea instance URL |
|
||||
| `ai_model` | no | `composer-2.5` | Cursor model id |
|
||||
| `push_to_default_branch` | no | `false` | When `"true"`, agent commits and pushes to the default branch instead of opening a PR |
|
||||
| `agent_timeout` | no | `5m` | Maximum runtime for the Cursor agent (`timeout` duration, e.g. `5m`, `30m`) |
|
||||
|
||||
## How it works
|
||||
|
||||
|
||||
Reference in New Issue
Block a user