Skip to content

Commit eaaa4ce

Browse files
authored
Merge pull request #496 from yuvikaaaaaa/github-action-project-structure
feat: add GitHub Action to auto-update project_structure.txt
2 parents c726a71 + 424a1f5 commit eaaa4ce

File tree

3 files changed

+397
-1
lines changed

3 files changed

+397
-1
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Fixes # (issue)
88

99
Please delete options that are not relevant.
1010

11-
- [ ] Bug fix (non-breaking change which fixes an issue)
11+
- [ ] Bug fix (non-breaking CHANGE which fixes an issue)
1212
- [ ] New feature (non-breaking change which adds functionality)
1313
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
1414
- [ ] Refactor (does not change functionality, e.g. code style improvements, linting)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update Project Structure
2+
3+
on:
4+
push:
5+
branches:
6+
- github-action-project-structure
7+
- dev
8+
9+
jobs:
10+
generate-structure:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Generate project structure
17+
run: |
18+
tree -a -I 'node_modules|.git' > project_structure.txt
19+
20+
- name: Commit and push changes
21+
run: |
22+
git config user.name "github-actions[bot]"
23+
git config user.email "github-actions[bot]@users.noreply.github.com"
24+
git add project_structure.txt
25+
git commit -m "chore: update project structure"
26+
git push

0 commit comments

Comments
 (0)