Add user links management system with platform support #343
+761
−1
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