How can I automatically push my LeetCode solutions to GitHub after every accepted submission? #201903
-
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaAPI BodyHi everyone, I'm looking for a way to automatically upload my LeetCode solutions to a GitHub repository whenever I solve and get an accepted submission. My goal is:
I've explored browser extensions like LeetHub and LeetCode Sync, but I'm interested in understanding whether this can be implemented using GitHub APIs, webhooks, or another automation approach. Some questions I have:
I'd appreciate recommendations on the most reliable and maintainable approach. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The short answer is no—LeetCode does not provide an official public API or webhook that notifies GitHub when you solve a problem. The most common approaches are:
If your goal is simply automatic syncing, LeetHub v2 is the easiest and most reliable solution. If your goal is to build your own automation or learn GitHub APIs, then creating a browser extension or userscript that calls the GitHub REST API after an accepted submission is the recommended approach. |
Beta Was this translation helpful? Give feedback.
The short answer is no—LeetCode does not provide an official public API or webhook that notifies GitHub when you solve a problem.
The most common approaches are:
LeetHub / LeetHub v2
LeetCode Sync
Custom Automation