Add user links management system with platform support#343
Open
Add user links management system with platform support#343
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #36
Implements ability to add, remove and list user links for supported platforms. This generalizes the GitHub profile feature to support multiple link types. Features: - Support for GitHub, StackOverflow, and GitLab platforms - Domain whitelist validation for security - User link storage in database - Three new bot triggers: AddUserLink, RemoveUserLink, ListUserLinks - Command examples and documentation Fixes #36 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a comprehensive user links management system that allows users to add, remove, and list their profile links for multiple supported platforms. This generalizes the previous GitHub-only profile link functionality (issue #23) to support multiple platforms as requested in issue #36.
Key Features
✅ Multi-platform support: GitHub, StackOverflow (including Stack Exchange network), and GitLab
✅ Domain validation: Built-in whitelist ensures only legitimate platform URLs are accepted
✅ User link management: Complete CRUD operations via GitHub issue commands
✅ Security: Domain validation prevents malicious links, users can only manage their own links
✅ Extensible design: Easy to add new platforms by updating the domain whitelist
Bot Commands
Users can create GitHub issues with these titles to manage their links:
add link <platform> <url>- Add a new platform linkremove link <platform>- Remove an existing platform linkmy linksorlist my links- View your registered linkslist links <username>- View another user's linksSupported Platforms
Technical Implementation
UserLinkclass with username, platform, and URL propertiesFileStorageclass with user link management methodsDomainWhiteliststatic class manages allowed domains per platformExample Usage
Test Plan
Fixes #36
🤖 Generated with Claude Code