File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # LeetCode Scaffolding Workflow
2+
3+ ## Requirements
4+
5+ - Fully automate problem scaffolding
6+ - Ensure consistent folder structure per study-plan
7+ - Avoid manual errors and save time
8+
9+ ---
10+
11+ ## How It Works
12+
13+ The workflow triggers on push events modifying files with the path:
14+
15+ ``` bash
16+ scripts/* .json
17+ ```
18+
19+ Workflow:
20+ - Detect all modified JSON files
21+ - Skip any files ending with ` details.json `
22+ - Run the ` scaffolding.py ` script passing the JSON containing alla the leetcode problem names as input
23+ - Generate the folder ` problems/<json-name> ` containing Python files for each problem
24+ - Create or update the file ` scripts/<json-name>-details.json ` with leetcode problem details fetched via GraphQL
25+ - Add and commit the changes
26+ - Push automatically via GitHub Actions
Original file line number Diff line number Diff line change 11# LeetCode
22
3+ This repository contains my solutions to LeetCode problems, organized study-plan.
4+ A [ workflow] ( https://github.com/BertozziPietro/leetcode/ ) is used to automate the creation of new study-plan folders.
5+
36![ ] ( https://leetcard.jacoblin.cool/PietroBertozzi?theme=dark&font=Source%20Code%20Pro )
You can’t perform that action at this time.
0 commit comments