diff --git a/.cline/rules/update-project-status-on-task-change.yaml b/.cline/rules/update-project-status-on-task-change.yaml new file mode 100644 index 0000000..140ce22 --- /dev/null +++ b/.cline/rules/update-project-status-on-task-change.yaml @@ -0,0 +1,19 @@ +name: Update Project Status On Task Change +on: + file_change: + paths: + - hgrp.pm/ProjectStatus.json + +jobs: + update-status: + runs-on: local + steps: + - name: Calculate overall percent done + run: node scripts/updateProjectStatus.js + - name: Commit and push changes + run: | + git config --global user.name "cline-bot" + git config --global user.email "cline-bot@hgrp.com" + git add hgrp.pm/ProjectStatus.json + git commit -m "Update project status [cline]" + git push diff --git a/.github/workflows/windsurf-update-status.yml b/.github/workflows/windsurf-update-status.yml new file mode 100644 index 0000000..7d2fb46 --- /dev/null +++ b/.github/workflows/windsurf-update-status.yml @@ -0,0 +1,24 @@ +name: Update Project Status On Task Change +on: + file_change: + paths: + - hgrp.pm/ProjectStatus.json + +jobs: + update-status: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Calculate overall percent done + run: | + node scripts/updateProjectStatus.js + + - name: Commit and push changes + run: | + git config --global user.name "windsurf-bot" + git config --global user.email "windsurf-bot@hgrp.com" + git add hgrp.pm/ProjectStatus.json + git commit -m "Update project status [windsurf]" + git push diff --git a/hgrp.pm/ProjectStatus.json b/hgrp.pm/ProjectStatus.json new file mode 100644 index 0000000..763f4a3 --- /dev/null +++ b/hgrp.pm/ProjectStatus.json @@ -0,0 +1,25 @@ +{ + "project_name": "chaos-coder", + "last_updated": "2025-04-24T22:42:37.501Z", + "tasks": [ + { + "id": 1, + "title": "Design API", + "status": "todo", + "percent_done": 0 + }, + { + "id": 2, + "title": "Build UI", + "status": "todo", + "percent_done": 0 + }, + { + "id": 3, + "title": "Write specs", + "status": "todo", + "percent_done": 0 + } + ], + "overall_percent_done": 0 +} \ No newline at end of file