{"id":16542979,"url":"https://github.com/me-on1/leetcode-syncinaction","last_synced_at":"2026-05-17T17:11:11.081Z","repository":{"id":65158156,"uuid":"398183550","full_name":"ME-ON1/Leetcode-SyncInAction","owner":"ME-ON1","description":"GitHub Action to Sync your Leetcode Accepted Solution with GitHub repo acts as a personal leetcode archive.","archived":false,"fork":false,"pushed_at":"2021-11-12T11:04:35.000Z","size":4179,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T19:41:39.025Z","etag":null,"topics":["github-actions","leetcode","leetcode-cpp","leetcode-solutions","leetcode-submissions","sync"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ME-ON1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-20T06:52:09.000Z","updated_at":"2021-11-13T16:26:40.000Z","dependencies_parsed_at":"2023-01-04T12:34:12.040Z","dependency_job_id":null,"html_url":"https://github.com/ME-ON1/Leetcode-SyncInAction","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":0.3666666666666667,"last_synced_commit":"25f4265099923c2d2f86620ce356b1c03f344f01"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ME-ON1%2FLeetcode-SyncInAction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ME-ON1%2FLeetcode-SyncInAction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ME-ON1%2FLeetcode-SyncInAction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ME-ON1%2FLeetcode-SyncInAction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ME-ON1","download_url":"https://codeload.github.com/ME-ON1/Leetcode-SyncInAction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249600,"owners_count":20908211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","leetcode","leetcode-cpp","leetcode-solutions","leetcode-submissions","sync"],"created_at":"2024-10-11T18:59:01.352Z","updated_at":"2026-05-17T17:11:11.039Z","avatar_url":"https://github.com/ME-ON1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LC-SyncInAction\n\nWhy take the effort of copy/pasting your solution manually when you can make use of technology to do it for you while you can grind more in Leetcode.\n\nLC-SyncInAction solves this problem and takes your cookie in his hand to pull and push your Accepted solution every day.\n\nFirst run will pull all your Accepted solutions from LC ( which will take **1h 45 min to 2h 30 min approx** ) and create a file with a extension of those submission in the current repository in the specified directory (root, if not provided ). Currently provide extension support for all languages accepted by leetcode \n\nEvery file created using this tool follows this naming convention : \u003csubmission_id\u003e_\u003ctitle_slug_of_problem\u003e. [SEE THIS EXAMPLE REPO ](https://github.com/ME-ON1/leetcode-bunker/)\n\nAll the runs afterward won't take long as the first run ( will be completed in few seconds :) ) and will fetch the last 20 submissions and this step can also be customized according to your preferred timing with the help of [schedule](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events)\n\n### Requirements : \n\n`cookie` value from the request headers  https://leetcode.com/\u003cyour-username\u003e \n\nThis cookie value has to be saved in repository secret named as `cookieVal` which **has to be** passed as `${{ secrets.cookieVal }}` into action step [you can look here on how to do save a repository secret](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository)\n\nYou can also pass location of directory, to option `solution_location` , where would you like to collect all your solutions ( the default is root directory ). \n\n## Usage\n\nMake a `WORKFLOW` file under `.github` folder by any name of your choice and start writing github actions. \n\nExample use case of action in your WORKFLOWS.\n    \n    on: \n        schedule: \n            - cron : '0 8 * * *' # your favourable timing\n    \n    jobs : \n      build :\n        run-on : ubuntu-latest \n\n      steps : \n        -name : Using LC-Collectinator\n         uses : ME-ON1/Leetcode-SyncInAction\n            with :\n              cookieVal : ${{ secrets.COOKIE_SECRET }} # secrets.cookieVal coming from repository secret    \n              solution_location : path/to/directory  # if any , default is root ./\n          \n        # dependency, to write newly created files to the root directory of the repository.  \n    \n        - name: pushing the changes!!\n        uses: stefanzweifel/git-auto-commit-action@v4\n        with:\n          commit_message: Adding new LC solutions # or anything you want to add.\n\nIf you need to look at examples check [.github/WORKFLOWS](https://github.com/ME-ON1/Leetcode-SyncInAction/tree/main/.github/WORKFLOWS) to understand a bit more.\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](https://github.com/ME-ON1/Leetcode-SyncInAction/blob/main/LICENSE)\n  \n## Issues \n\nPlease file an Issue with brief information about the bug. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fme-on1%2Fleetcode-syncinaction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fme-on1%2Fleetcode-syncinaction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fme-on1%2Fleetcode-syncinaction/lists"}