Skip to content

Effortlessly push your LeetCode solutions to GitHub with a single click! πŸš€ Automate code management, keep your repo updated, and say goodbye to manual commits. Let LeetCommit handle the heavy lifting for you! πŸ’ͺπŸ“ˆ

License

Notifications You must be signed in to change notification settings

himilsinh-sindha/LeetCommit-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LeetCommit

Automate Your LeetCode Submissions to GitHub πŸš€

LeetCommit is a Chrome extension designed to streamline the process of saving and managing your LeetCode solutions. By integrating directly with GitHub, this extension allows developers to automatically commit their LeetCode code submissions to their GitHub repositories, making it easier to track progress and maintain a personal code repository.

Key Features

  • One-Time Authorization: Authorize with GitHub just once and the extension will remember your details and last selected repository. πŸ”‘
  • Automatic Filename Generation: Fetches the problem title from LeetCode and uses it as the filename for the committed code (currently supports C++,Java,Python,Python3 and JavaScript only). πŸ“„
  • Effortless Commit: Push your LeetCode solutions to GitHub with a single click. βœ…
  • Update Existing Solutions: If a solution with the same filename already exists in your repository, it will be updated. If it doesn't exist, a new file will be created. πŸ”„
  • Folder Management: Automatically creates the required folder for organizing your solutions if it doesn't already exist. πŸ“
  • Error Handling: Comprehensive error handling to provide clear feedback on the commit status, ensuring users are informed of success or failure. ❗️

Screenshots

Here are some screenshots showcasing the features of LeetCommit:

LeetCommit Dashboard
LeetCommit Startup Interface 🌟
LeetCommit Authorization
GitHub Authorization πŸ”“
LeetCommit Success Message
After Successful Commit πŸŽ‰

Installation

Install from GitHub

  1. Clone or download this repository to your local machine.

    git clone https://github.com/himilsinh-sindha/LeetCommit-Extension.git
  2. Open Google Chrome and navigate to chrome://extensions/.

  3. Toggle Developer Mode on (top right corner).

  4. Click on Load unpacked and select the folder where you cloned/downloaded the extension (the root folder containing manifest.json).

  5. The LeetCommit extension will now appear in your Chrome extensions list.

Usage

  1. Solve a Problem on LeetCode: Go to LeetCode and solve any problem. 🧩

  2. Submit Your Solution: After solving the problem, ensure it is successfully submitted and the code along with the analysis is visible on the screen. πŸ“

  3. Open LeetCommit: Click on the LeetCommit extension icon in your browser toolbar. πŸ”§

  4. Select Repository: Choose the GitHub repository where you want to commit your solution. πŸ“‚

  5. Commit to GitHub: Click on Commit to GitHub. Your solution will be automatically committed and pushed to the selected GitHub repository. πŸš€

    • Note: If there is no successfully submitted code on LeetCode, the extension will display an error message: "No code on screen". ⚠️

Contributing

Contributions are always welcome! If you’d like to improve this project:

  1. Fork the repository.
  2. Create a new branch for your feature (git checkout -b feature-branch).
  3. Make your changes and commit (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a pull request and describe the changes made.

Issues

If you encounter any problems while using LeetCommit, feel free to open an issue here. πŸ›

License

This project is licensed under the MIT License. See the LICENSE file for details. πŸ“œ


If you find LeetCommit useful, please consider giving it a ⭐️ on GitHub to support its development and future improvements! πŸ™Œ

About

Effortlessly push your LeetCode solutions to GitHub with a single click! πŸš€ Automate code management, keep your repo updated, and say goodbye to manual commits. Let LeetCommit handle the heavy lifting for you! πŸ’ͺπŸ“ˆ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published