Skip to content

Conversation

@redreceipt
Copy link
Member

Summary

  • split Linear API logic into linear package
  • move client and helpers to linear/client.py
  • put issue queries and helpers in linear/issues.py
  • isolate project queries in linear/projects.py
  • update application code to import from new modules

Testing

  • pytest -q

https://chatgpt.com/codex/tasks/task_e_688a82984ab88324a4b62c6208a2b307

Copilot AI review requested due to automatic review settings July 30, 2025 20:45
@redreceipt redreceipt temporarily deployed to bug-board-codex-create--auazv5 July 30, 2025 20:45 Inactive
Copy link
Contributor

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 PR refactors the Linear API functionality by splitting it into a dedicated linear package with separate modules for different responsibilities. The refactoring improves code organization by separating client configuration, issue operations, and project operations into distinct modules.

  • Split Linear API logic into a dedicated package structure
  • Move client initialization and helper functions to linear/client.py
  • Separate issue-related queries into linear/issues.py and project queries into linear/projects.py

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
linear/client.py New module containing Linear API client initialization and shared helper functions
linear/issues.py Refactored to remove client code and import from new client module, with project queries moved out
linear/projects.py New module containing project-specific Linear API queries moved from issues module
app.py Updated imports to use new package structure
jobs.py Updated imports to use new package structure

query = gql(
"""
query {
teams(filter: { name: { eq: \"Apollos\" } }, first: 1) {
Copy link

Copilot AI Jul 30, 2025

Choose a reason for hiding this comment

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

The team name "Apollos" is hardcoded in the query. Consider making this configurable through a parameter or environment variable to improve flexibility and maintainability.

Copilot uses AI. Check for mistakes.
@redreceipt redreceipt merged commit dadff01 into main Jul 30, 2025
2 checks passed
@redreceipt redreceipt deleted the codex/create-linear-package-and-reorganize-code branch July 30, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants