From bb7a3da32d3debd8b43724b4249eb0eb60624cab Mon Sep 17 00:00:00 2001 From: el-rabies Date: Tue, 7 Apr 2026 15:58:11 -0400 Subject: [PATCH 1/4] fix: Autofix pipeline --- .github/workflows/prettier.yml | 16 ++++++++++++---- .../src/scripts/generate-index.ts | 4 +--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 4154fdc..5363bf0 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,7 +1,6 @@ name: autofix.ci on: pull_request: - push: permissions: contents: write @@ -30,6 +29,15 @@ jobs: echo "No files to format" fi - - uses: autofix-ci/action@v1 - with: - commit-message: "Apply Prettier format" \ No newline at end of file + - name: Commit formatted changes + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + if [ -n "$(git status --porcelain)" ]; then + git add --all + git commit -m "chore: Apply Prettier formatting" + git push + else + echo "No formatting changes to commit" + fi \ No newline at end of file diff --git a/projects/website-angular/src/scripts/generate-index.ts b/projects/website-angular/src/scripts/generate-index.ts index bbdc40e..a1b017e 100644 --- a/projects/website-angular/src/scripts/generate-index.ts +++ b/projects/website-angular/src/scripts/generate-index.ts @@ -150,9 +150,7 @@ function generateSiteSearchIndex(): void { const outputPath = path.join(outputDir, 'site-search-index.json'); fs.writeFileSync(outputPath, JSON.stringify(items)); - // console.log( - // `Site search index generated: ${items.length} entries → ${outputPath}` - // ); + console.log( `Site search index generated: ${items.length} entries → ${outputPath}`); //This chaned to test autofix } function loadNewsArticlesFromDir(dir: string): ArticleIndexItem[] { From 280fac933a583e78b90e2dedd4df5fedd6b61943 Mon Sep 17 00:00:00 2001 From: el-rabies Date: Tue, 7 Apr 2026 16:03:53 -0400 Subject: [PATCH 2/4] fix: git branch error in prettier pipeline --- .github/workflows/prettier.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 5363bf0..2ca92e0 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -35,9 +35,11 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" if [ -n "$(git status --porcelain)" ]; then + # Check out the PR branch to avoid detached HEAD + git checkout ${{ github.head_ref }} git add --all git commit -m "chore: Apply Prettier formatting" - git push + git push origin ${{ github.head_ref }} else echo "No formatting changes to commit" fi \ No newline at end of file From 3468f0d9d7b7ce9edce72b674367d89c409dedc6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 7 Apr 2026 20:05:50 +0000 Subject: [PATCH 3/4] chore: Apply Prettier formatting --- projects/website-angular/src/scripts/generate-index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/website-angular/src/scripts/generate-index.ts b/projects/website-angular/src/scripts/generate-index.ts index a1b017e..f9ea751 100644 --- a/projects/website-angular/src/scripts/generate-index.ts +++ b/projects/website-angular/src/scripts/generate-index.ts @@ -150,7 +150,9 @@ function generateSiteSearchIndex(): void { const outputPath = path.join(outputDir, 'site-search-index.json'); fs.writeFileSync(outputPath, JSON.stringify(items)); - console.log( `Site search index generated: ${items.length} entries → ${outputPath}`); //This chaned to test autofix + console.log( + `Site search index generated: ${items.length} entries → ${outputPath}` + ); //This chaned to test autofix } function loadNewsArticlesFromDir(dir: string): ArticleIndexItem[] { From 244cb4d9932051fc98c0e5bdfbd8b12528000c0f Mon Sep 17 00:00:00 2001 From: el-rabies Date: Tue, 7 Apr 2026 16:07:18 -0400 Subject: [PATCH 4/4] chore: reverted test changes --- projects/website-angular/src/scripts/generate-index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/website-angular/src/scripts/generate-index.ts b/projects/website-angular/src/scripts/generate-index.ts index f9ea751..bbdc40e 100644 --- a/projects/website-angular/src/scripts/generate-index.ts +++ b/projects/website-angular/src/scripts/generate-index.ts @@ -150,9 +150,9 @@ function generateSiteSearchIndex(): void { const outputPath = path.join(outputDir, 'site-search-index.json'); fs.writeFileSync(outputPath, JSON.stringify(items)); - console.log( - `Site search index generated: ${items.length} entries → ${outputPath}` - ); //This chaned to test autofix + // console.log( + // `Site search index generated: ${items.length} entries → ${outputPath}` + // ); } function loadNewsArticlesFromDir(dir: string): ArticleIndexItem[] {