Skip to content

Commit f164eb1

Browse files
committed
docs(readme): document git and timeout configuration options
Add documentation for: - OPENCODER_AUTO_COMMIT environment variable - OPENCODER_AUTO_PUSH environment variable - OPENCODER_COMMIT_SIGNOFF environment variable - OPENCODER_CYCLE_TIMEOUT_MINUTES environment variable Also update config.json example to show all available options including autoCommit, autoPush, commitSignoff, and cycleTimeoutMinutes. This helps users understand how to configure git behavior and cycle timeouts through environment variables or config file. Signed-off-by: leocavalcante <leo@cavalcante.dev>
1 parent 856db65 commit f164eb1

File tree

2 files changed

+35
-27
lines changed

2 files changed

+35
-27
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,11 @@ Create a `.opencode/opencoder/config.json` in your project:
181181
"buildModel": "anthropic/claude-sonnet-4",
182182
"verbose": false,
183183
"maxRetries": 3,
184-
"taskPauseSeconds": 2
184+
"taskPauseSeconds": 2,
185+
"autoCommit": true,
186+
"autoPush": true,
187+
"commitSignoff": false,
188+
"cycleTimeoutMinutes": 60
185189
}
186190
```
187191

@@ -197,6 +201,10 @@ Create a `.opencode/opencoder/config.json` in your project:
197201
| `OPENCODER_BACKOFF_BASE` | `10` | Base seconds for exponential backoff |
198202
| `OPENCODER_LOG_RETENTION` | `30` | Days to keep old logs |
199203
| `OPENCODER_TASK_PAUSE_SECONDS` | `2` | Pause between tasks |
204+
| `OPENCODER_AUTO_COMMIT` | `true` | Auto-commit changes after tasks |
205+
| `OPENCODER_AUTO_PUSH` | `true` | Auto-push commits after cycles |
206+
| `OPENCODER_COMMIT_SIGNOFF` | `false` | Add Signed-off-by to commits (DCO) |
207+
| `OPENCODER_CYCLE_TIMEOUT_MINUTES` | `60` | Max minutes per cycle (0 = no limit) |
200208

201209
### Config Priority
202210

biome.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
3-
"linter": {
4-
"enabled": true,
5-
"rules": {
6-
"recommended": true,
7-
"correctness": {
8-
"noUnusedImports": "warn",
9-
"noUnusedVariables": "warn"
10-
}
11-
}
12-
},
13-
"formatter": {
14-
"enabled": true,
15-
"indentStyle": "tab",
16-
"indentWidth": 2,
17-
"lineWidth": 100
18-
},
19-
"javascript": {
20-
"formatter": {
21-
"quoteStyle": "double",
22-
"semicolons": "asNeeded"
23-
}
24-
},
25-
"files": {
26-
"includes": ["src/**/*.ts", "tests/**/*.ts"]
27-
}
2+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
3+
"linter": {
4+
"enabled": true,
5+
"rules": {
6+
"recommended": true,
7+
"correctness": {
8+
"noUnusedImports": "warn",
9+
"noUnusedVariables": "warn"
10+
}
11+
}
12+
},
13+
"formatter": {
14+
"enabled": true,
15+
"indentStyle": "tab",
16+
"indentWidth": 2,
17+
"lineWidth": 100
18+
},
19+
"javascript": {
20+
"formatter": {
21+
"quoteStyle": "double",
22+
"semicolons": "asNeeded"
23+
}
24+
},
25+
"files": {
26+
"includes": ["src/**/*.ts", "tests/**/*.ts"]
27+
}
2828
}

0 commit comments

Comments
 (0)