Skip to content

feat: integrate social sharing UI and add GitHub auto-publisher#183

Open
Unnati1007 wants to merge 3 commits into
vanshaggarwal27:mainfrom
Unnati1007:feat/social-sharing
Open

feat: integrate social sharing UI and add GitHub auto-publisher#183
Unnati1007 wants to merge 3 commits into
vanshaggarwal27:mainfrom
Unnati1007:feat/social-sharing

Conversation

@Unnati1007

Copy link
Copy Markdown

Description
This PR implements the requested "Social Integrations" feature, fulfilling the "Future Scope" goals of LeetLog AI by enabling a truly 100% automated workflow from "Solving the Code" to "Social Media Promotion."

Key Changes:

Exposed Existing Social Sharing: Integrated the twitter_api_key, twitter_api_secret, twitter_access_token, and twitter_access_secret inputs into the React Settings UI. This seamlessly bridges the gap so the existing social.py logic can now successfully auto-tweet URLs without disturbing the current implementation!
GitHub Auto-Publisher Integration: Built a brand new backend module (github_integration.py) that uses the GitHub REST API to automatically commit code.
Background Execution: Wired the GitHub publisher into the /generate-blog FastAPI route so it runs silently in the background (using run_in_threadpool) immediately after a blog is generated.
Frontend Sync: Expanded the IntegrationSettings MongoDB schema and added a "GitHub Auto-Publisher" card to the React dashboard where users can securely paste their GitHub Personal Access Token and target Repository Name.
Related Issue
Fixes #162
Type of Change
Bug fix
New feature
Documentation update
Checklist
My code follows project guidelines
I have tested my changes
Documentation updated if needed

Exposes existing Twitter/X backend integration safely in the React settings UI. Implements a new backend module to push LeetCode solutions directly to user GitHub repositories automatically via GitHub REST API.
@vanshaggarwal27

Copy link
Copy Markdown
Owner

Please resolve merge conflict and check for pipeline

@Unnati1007

Copy link
Copy Markdown
Author

@vanshaggarwal27 done do review it

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.

[FEATURE] Auto-Share Published Blogs to LinkedIn & Twitter/X

2 participants