Skip to content

Latest commit

 

History

History
92 lines (65 loc) · 4.32 KB

README.md

File metadata and controls

92 lines (65 loc) · 4.32 KB

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! 🙌