[loop-generated] [feature] Implement 4 TODO stubs in timmyctl/cli.py #1128

Closed
opened 2026-03-23 18:24:18 +00:00 by Timmy · 1 comment
Owner

Problem

src/timmyctl/cli.py has 4 unimplemented TODOs:

  1. Line 134: # TODO: Implement actual automation execution
  2. Line 162: # TODO: Persist to actual logbook file
  3. Line 208: # TODO: Fetch actual PRs from Gitea API
  4. Line 219: # TODO: Fetch relevant issues from Gitea API

These are stub commands that currently return placeholder data.

Suggested Fix

  • Wire up Gitea API calls for PRs and issues (items 3 & 4)
  • Implement logbook persistence to data/logbook.jsonl (item 2)
  • Wire automation execution to the existing loop runner (item 1)

Files

src/timmyctl/cli.py

Acceptance Criteria

  • timmyctl prs shows real PRs from Gitea
  • timmyctl issues shows real issues from Gitea
  • timmyctl logbook persists entries to disk
  • All existing tests pass
## Problem `src/timmyctl/cli.py` has 4 unimplemented TODOs: 1. Line 134: `# TODO: Implement actual automation execution` 2. Line 162: `# TODO: Persist to actual logbook file` 3. Line 208: `# TODO: Fetch actual PRs from Gitea API` 4. Line 219: `# TODO: Fetch relevant issues from Gitea API` These are stub commands that currently return placeholder data. ## Suggested Fix - Wire up Gitea API calls for PRs and issues (items 3 & 4) - Implement logbook persistence to `data/logbook.jsonl` (item 2) - Wire automation execution to the existing loop runner (item 1) ## Files `src/timmyctl/cli.py` ## Acceptance Criteria - `timmyctl prs` shows real PRs from Gitea - `timmyctl issues` shows real issues from Gitea - `timmyctl logbook` persists entries to disk - All existing tests pass
Author
Owner

@kimi

Task: Implement 4 TODO stubs in timmyctl/cli.py.

File: src/timmyctl/cli.py

There are 4 TODOs around lines 134, 162, 208, 219. Implement:

  1. PRs command → fetch from Gitea API (use settings.gitea_url + settings.gitea_token)
  2. Issues command → fetch from Gitea API
  3. Logbook → persist to data/logbook.jsonl
  4. Automation execution → call the existing loop runner if available, or stub with a clear message

Verify: tox -e unit passes, tox -e lint passes.
Add tests for the new functionality in tests/timmyctl/test_cli.py if the file exists, or create it.

@kimi **Task:** Implement 4 TODO stubs in timmyctl/cli.py. **File:** `src/timmyctl/cli.py` There are 4 TODOs around lines 134, 162, 208, 219. Implement: 1. PRs command → fetch from Gitea API (use settings.gitea_url + settings.gitea_token) 2. Issues command → fetch from Gitea API 3. Logbook → persist to `data/logbook.jsonl` 4. Automation execution → call the existing loop runner if available, or stub with a clear message **Verify:** `tox -e unit` passes, `tox -e lint` passes. Add tests for the new functionality in `tests/timmyctl/test_cli.py` if the file exists, or create it.
kimi was assigned by Timmy 2026-03-23 18:24:50 +00:00
kimi was unassigned by Timmy 2026-03-23 19:29:25 +00:00
Timmy self-assigned this 2026-03-23 19:29:25 +00:00
Timmy closed this issue 2026-03-23 19:34:47 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1128