Skip to content

Conversation

@hco
Copy link
Owner

@hco hco commented Nov 18, 2025

No description provided.

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 pull request adds support for Linear's "actor mode" OAuth feature, enabling the integration to create issues on behalf of specific Home Assistant users rather than always using the integration's OAuth credentials.

Key Changes:

  • Configures OAuth flow with actor mode parameters to enable per-user issue creation
  • Extracts user context from service calls and todo item creation to identify the creating user
  • Maps Home Assistant users to person entities to retrieve avatar URLs for display in Linear

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
config_flow.py Adds OAuth scopes and extra authorize parameters (actor, scope, prompt) to enable actor mode during OAuth authentication
api.py Extends async_create_issue and async_create_issue_advanced methods with created_by_user and created_by_user_avatar_url parameters to support Linear's actor mode API
todo.py Implements user context retrieval, person entity lookup, and avatar URL construction when creating todo items to pass user information to Linear
init.py Extracts user information from service call context and reduces logging verbosity for team ID fetching from info to debug level

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

@hco hco changed the base branch from oauth to oauth-refres November 20, 2025 07:49
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

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


💡 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