Skip to content

fix(toggl): use ActionResult/ActionError, add cost_usd, upgrade SDK to 1.1.1#267

Open
Shubhank-Jonnada wants to merge 4 commits intomasterfrom
fix/toggl-action-error-sdk-upgrade-v2
Open

fix(toggl): use ActionResult/ActionError, add cost_usd, upgrade SDK to 1.1.1#267
Shubhank-Jonnada wants to merge 4 commits intomasterfrom
fix/toggl-action-error-sdk-upgrade-v2

Conversation

@Shubhank-Jonnada
Copy link
Copy Markdown
Contributor

Summary

The Toggl Track integration was using raw dict returns and raise Exception instead of the standard SDK response types. This updates it to use ActionResult and ActionError consistently, adds the required cost_usd=0.0 field, upgrades the deprecated SDK version, and rewrites the README with all required sections.

Changes

File Change
toggl/toggl.py Import and return ActionResult(data=resp.data, cost_usd=0.0) on success; return ActionError(message=...) on missing token or fetch exception
toggl/requirements.txt Upgrade autohive-integrations-sdk~=1.0.2~=1.1.1
toggl/README.md Full rewrite — added Key Features, Setup & Authentication, full Actions table with inputs/outputs, API Info, Rate Limiting, Error Handling, Troubleshooting, Version History

Actions

Action Description
create_time_entry Creates a time entry in a Toggl workspace with start/stop, duration, project, task, tags, and billable flag

Authentication

  • Type: Custom (API token)
  • Fields: api_token — Toggl API token used via HTTP Basic Auth

Validation

  • validate_integration.py — passed (0 errors, 0 warnings)
  • Main README entry — exists and complete

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 22, 2026

🔍 Integration Validation Results

Commit: f8ec086207eeb99ebe3c3f533b93e7cd32f703fc · fix(toggl): upgrade SDK to 2.0.0 to fix dict has no attribute status error
Updated: 2026-04-22T01:40:04Z

Changed directories: toggl

Check Result
Structure ✅ Passed
Code ⚠️ Passed with warnings
Tests ⚠️ Passed with warnings
README ✅ Passed
Version ✅ Passed
✅ Structure Check output
Validating 1 integration(s)...

============================================================
Integration: toggl
============================================================
✅ All checks passed!

============================================================
SUMMARY
============================================================
Integrations validated: 1
Total errors: 0
Total warnings: 0

✅ All validations passed!
⚠️ Code Check output
----------------------------------------
Checking: toggl
----------------------------------------

📦 Installing dependencies...

🐍 Checking Python syntax...
   ✅ Syntax OK

📥 Checking imports...
   ✅ Imports OK

📄 Checking JSON files...
   ✅ JSON files OK

🔍 Linting with ruff...
   ✅ Lint OK

🎨 Checking formatting with ruff...
   ✅ Formatting OK

🔒 Scanning for security issues with bandit...
   ✅ Security OK

🛡️ Checking dependencies for vulnerabilities with pip-audit...
   ✅ Dependencies OK

🔗 Checking config-code sync...
   ⚠️  Action 'create_time_entry': parameter 'start' is required in schema but accessed with inputs.get() (safe for missing)
   ✅ Config-code sync OK

🔄 Checking fetch patterns...
   ✅ Fetch patterns OK

========================================
✅ CODE CHECK PASSED
========================================
⚠️ Tests output
⚠️  No unit tests (test_*_unit.py) found in: toggl
⚠️  No unit tests to run
✅ README Check output
========================================
✅ README CHECK PASSED
========================================
✅ Version Check output
✅ toggl: 0.1.0 → 0.1.1 (patch bump)

========================================
✅ VERSION CHECK PASSED
========================================

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 15b334315b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread toggl/toggl.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant