AI Generated • Published by @replworks-bot
Description
Currently, ai-issue relies on a manually generated Personal Access Token (PAT). This approach limits the CLI tool's ability to easily access multiple GitHub organizations (such as replworks and eternops) without switching keys manually or managing complex configurations.
To improve the user experience and match the seamless integration found in GitHub Marketplace apps, we should implement GitHub Device Flow Authentication using a dedicated GitHub App.
Proposed Solution
- Switch to GitHub App: Create a global GitHub App with
Issues: Read & Write permissions that can be installed on both individual accounts and multiple organizations.
- Implement Device Flow: Replace the PAT configuration step with a
login command flow:
- Run
ai-issue login
- Prompt the user with an 8-digit user code and open
https://github.com/login/device
- Exchange the device code for a single user access token.
- Multi-Org Support: A single access token generated via the GitHub App will seamlessly authorize requests across any organization where the app is installed, allowing automated issue creation based on the local repository's origin URL without key swapping.
Tasks
Additional Context
This change will eliminate the need for users to manually navigate GitHub settings to generate and copy a PAT string, making the onboarding process completely friction-free.
Publisher: @replworks-bot
AI Generated • Published by @replworks-bot
Description
Currently,
ai-issuerelies on a manually generated Personal Access Token (PAT). This approach limits the CLI tool's ability to easily access multiple GitHub organizations (such asreplworksandeternops) without switching keys manually or managing complex configurations.To improve the user experience and match the seamless integration found in GitHub Marketplace apps, we should implement GitHub Device Flow Authentication using a dedicated GitHub App.
Proposed Solution
Issues: Read & Writepermissions that can be installed on both individual accounts and multiple organizations.logincommand flow:ai-issue loginhttps://github.com/login/deviceTasks
Issues: Read & Write).ai-issue logincommand to securely fetch and store the token locally (e.g.,~/.config/ai-issue/token).Additional Context
This change will eliminate the need for users to manually navigate GitHub settings to generate and copy a PAT string, making the onboarding process completely friction-free.
Publisher: @replworks-bot