From d80b00d43a6eb431919d88d50d83e81cc8932c73 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Aug 2026 07:16:13 +0000 Subject: [PATCH 1/4] Initial plan From 18977a1c5f67d8f9c4479eaaadc7889077473312 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Aug 2026 07:24:50 +0000 Subject: [PATCH 2/4] fix: add workflow to remove dangling symlink from gh-pages branch Co-authored-by: shramee <11048263+shramee@users.noreply.github.com> --- .github/workflows/fix-gh-pages.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/fix-gh-pages.yml diff --git a/.github/workflows/fix-gh-pages.yml b/.github/workflows/fix-gh-pages.yml new file mode 100644 index 000000000..f1d69022f --- /dev/null +++ b/.github/workflows/fix-gh-pages.yml @@ -0,0 +1,28 @@ +name: Fix gh-pages symlinks + +on: + workflow_dispatch: + push: + branches: [main] + +jobs: + fix-gh-pages: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + with: + ref: gh-pages + fetch-depth: 0 + - name: Remove dangling symlinks + run: | + if [ -L app/api/exercises ] && [ ! -e app/api/exercises ]; then + git rm app/api/exercises + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git commit -m "fix: remove dangling symlink app/api/exercises" + git push origin gh-pages + else + echo "No dangling symlinks found, nothing to do." + fi From e18eca81a546e8ba162d83a29e6f4b3f3f5ad3d1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Aug 2026 07:26:01 +0000 Subject: [PATCH 3/4] fix: use generic dangling symlink detection and remove unnecessary fetch-depth Co-authored-by: shramee <11048263+shramee@users.noreply.github.com> --- .github/workflows/fix-gh-pages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fix-gh-pages.yml b/.github/workflows/fix-gh-pages.yml index f1d69022f..4d0b4f59e 100644 --- a/.github/workflows/fix-gh-pages.yml +++ b/.github/workflows/fix-gh-pages.yml @@ -14,14 +14,14 @@ jobs: - uses: actions/checkout@v4 with: ref: gh-pages - fetch-depth: 0 - name: Remove dangling symlinks run: | - if [ -L app/api/exercises ] && [ ! -e app/api/exercises ]; then - git rm app/api/exercises + dangling=$(find . -xtype l -not -path './.git/*') + if [ -n "$dangling" ]; then + echo "$dangling" | xargs git rm git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - git commit -m "fix: remove dangling symlink app/api/exercises" + git commit -m "fix: remove dangling symlinks from gh-pages" git push origin gh-pages else echo "No dangling symlinks found, nothing to do." From 4f2e98702c702863e535ccebf8f827cb44b88ac2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Aug 2026 06:11:30 +0000 Subject: [PATCH 4/4] fix: untrack api symlinks and add to .gitignore to prevent gh-pages breakage Co-authored-by: shramee <11048263+shramee@users.noreply.github.com> --- .github/workflows/fix-gh-pages.yml | 28 ---------------------------- app/api/.gitignore | 4 +++- app/api/exercises | 1 - app/api/info.toml | 1 - 4 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/fix-gh-pages.yml delete mode 120000 app/api/exercises delete mode 120000 app/api/info.toml diff --git a/.github/workflows/fix-gh-pages.yml b/.github/workflows/fix-gh-pages.yml deleted file mode 100644 index 4d0b4f59e..000000000 --- a/.github/workflows/fix-gh-pages.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Fix gh-pages symlinks - -on: - workflow_dispatch: - push: - branches: [main] - -jobs: - fix-gh-pages: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - with: - ref: gh-pages - - name: Remove dangling symlinks - run: | - dangling=$(find . -xtype l -not -path './.git/*') - if [ -n "$dangling" ]; then - echo "$dangling" | xargs git rm - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git commit -m "fix: remove dangling symlinks from gh-pages" - git push origin gh-pages - else - echo "No dangling symlinks found, nothing to do." - fi diff --git a/app/api/.gitignore b/app/api/.gitignore index 97aca2ea1..e2d0b259b 100644 --- a/app/api/.gitignore +++ b/app/api/.gitignore @@ -1,2 +1,4 @@ .env -node_modules \ No newline at end of file +node_modules +exercises +info.toml \ No newline at end of file diff --git a/app/api/exercises b/app/api/exercises deleted file mode 120000 index d023744bf..000000000 --- a/app/api/exercises +++ /dev/null @@ -1 +0,0 @@ -../../exercises \ No newline at end of file diff --git a/app/api/info.toml b/app/api/info.toml deleted file mode 120000 index b3339534c..000000000 --- a/app/api/info.toml +++ /dev/null @@ -1 +0,0 @@ -../../info.toml \ No newline at end of file