From 9372b072cb14a8db8e6837f3aa89bbfb8bd321b0 Mon Sep 17 00:00:00 2001 From: scott45 Date: Thu, 16 Oct 2025 16:28:43 +0300 Subject: [PATCH] enhance: subdivide wiki issues into To-Do and Done --- .../ISSUE_TEMPLATE/{bug-report.md => bug-report.yml} | 0 .../{development-item.md => development-item.yml} | 0 .../{failing-tests.md => failing-tests.yml} | 0 .../{feature-request.md => feature-request.yml} | 0 .github/workflows/automate-docs.yml | 10 +++++++--- 5 files changed, 7 insertions(+), 3 deletions(-) rename .github/ISSUE_TEMPLATE/{bug-report.md => bug-report.yml} (100%) rename .github/ISSUE_TEMPLATE/{development-item.md => development-item.yml} (100%) rename .github/ISSUE_TEMPLATE/{failing-tests.md => failing-tests.yml} (100%) rename .github/ISSUE_TEMPLATE/{feature-request.md => feature-request.yml} (100%) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/bug-report.md rename to .github/ISSUE_TEMPLATE/bug-report.yml diff --git a/.github/ISSUE_TEMPLATE/development-item.md b/.github/ISSUE_TEMPLATE/development-item.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/development-item.md rename to .github/ISSUE_TEMPLATE/development-item.yml diff --git a/.github/ISSUE_TEMPLATE/failing-tests.md b/.github/ISSUE_TEMPLATE/failing-tests.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/failing-tests.md rename to .github/ISSUE_TEMPLATE/failing-tests.yml diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/feature-request.md rename to .github/ISSUE_TEMPLATE/feature-request.yml diff --git a/.github/workflows/automate-docs.yml b/.github/workflows/automate-docs.yml index 121fe62..67dbc29 100644 --- a/.github/workflows/automate-docs.yml +++ b/.github/workflows/automate-docs.yml @@ -19,8 +19,12 @@ jobs: - name: Auto-Update Wiki run: | mkdir -p wiki - ISSUES=$(gh issue list --json title,createdAt --jq '.[] | "- \(.title) (Created: \(.createdAt))"' || echo "No issues found") - echo -e "# Project Updates\n\n## Recent Issues\n$ISSUES" > wiki/Home.md + # Get open issues + ISSUES_OPEN=$(gh issue list --state open --json title,createdAt --jq '.[] | "- \(.title) (Created: \(.createdAt))"' || echo "No open issues") + # Get closed issues + ISSUES_CLOSED=$(gh issue list --state closed --json title,createdAt --jq '.[] | "- \(.title) (Created: \(.createdAt))"' || echo "No closed issues") + # Generate Markdown with subsections + echo -e "# Project Updates\n\n## To-Do\n$ISSUES_OPEN\n\n## Done\n$ISSUES_CLOSED" > wiki/Home.md git clone https://${{ github.actor }}:${{ secrets.DEMO_GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git wiki-temp || ( echo "Error: Wiki repo not found. Please initialize the wiki in the GitHub UI at https://github.com/${{ github.repository }}/wiki" exit 1 @@ -31,7 +35,7 @@ jobs: git config user.email "actions@github.com" git checkout master || git checkout -b master git add . - git commit -m "docs: auto-update wiki" || echo "No changes to commit" + git commit -m "docs: auto-update wiki" || git commit -m "docs: force update wiki" git push https://${{ github.actor }}:${{ secrets.DEMO_GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git master - name: Auto-Update Project if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'dev'