Skip to content

Conversation

@goncalossilva
Copy link
Member

@goncalossilva goncalossilva commented Jan 14, 2026

@goncalossilva goncalossilva force-pushed the goncalossilva/search-projects-sections-labels branch 8 times, most recently from 32260f3 to b592274 Compare January 14, 2026 21:50
@goncalossilva goncalossilva force-pushed the goncalossilva/search-projects-sections-labels branch 2 times, most recently from ddc7903 to 89ac7ab Compare January 14, 2026 22:13
Add search_projects methods (sync + async) using the new /projects/search endpoint.
Add search_sections methods (sync + async) using the new /sections/search endpoint.
Add search_labels methods (sync + async) using the new /labels/search endpoint.
@goncalossilva goncalossilva force-pushed the goncalossilva/search-projects-sections-labels branch from 89ac7ab to ca531fb Compare January 14, 2026 22:16
@goncalossilva goncalossilva marked this pull request as ready for review January 14, 2026 22:17
@goncalossilva goncalossilva requested a review from a team as a code owner January 14, 2026 22:17
Copilot AI review requested due to automatic review settings January 14, 2026 22:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds search functionality for projects, sections, and labels in the Todoist API Python SDK. The changes implement three new search endpoints that allow filtering by name using a query string, complementing the existing list/get operations.

Changes:

  • Added three new search methods: search_projects, search_sections, and search_labels
  • Introduced endpoint path constants for the new search operations
  • Fixed incomplete documentation for the get_labels method's limit parameter

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
todoist_api_python/_core/endpoints.py Added search path suffix constants for projects, sections, and labels endpoints
todoist_api_python/api.py Implemented synchronous search methods for projects, sections, and labels; fixed documentation typo in get_labels
todoist_api_python/api_async.py Implemented asynchronous wrappers for the search methods using the existing async pattern
tests/test_api_projects.py Added comprehensive test for search_projects covering both sync and async variants
tests/test_api_sections.py Added tests for search_sections with and without project filtering
tests/test_api_labels.py Added comprehensive test for search_labels covering both sync and async variants
CHANGELOG.md Documented the new search functionality in the Unreleased section

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants