arunbhardwaj / LeetHub-2.0

Automatically sync your leetcode solutions to your github account - with some updates to keep it working
https://chrome.google.com/webstore/detail/leethub-v2/mhanfgfagplhgemhjfeolkkdidbakocm
MIT License
273 stars 35 forks source link

Reduce the number of commits the extension produces #83

Open NamesMark opened 3 months ago

NamesMark commented 3 months ago

Currently, the extension produces 3 commits per submission of a solution for a new problem:

  1. Create README page for the problem
  2. Update README - Topic Tags
  3. Update the problem code

, and 2 commits per re-submission:

  1. Update README - Topic Tags (with diff of 0)
  2. Update the problem code

I would like to propose:

  1. Don't do "Update README - Topic Tags" when diff is 0 (when it's a re-submission).
  2. Ideally, it would be best if we had only 1 commit per problem, that updates all necessary files at once.

While some may see it as a plus for their GitHub profile, it's still a lot of empty commits.