-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for actor mode #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: oauth-refres
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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.
No description provided.