From 11f5a1cb016b15243bb53848d3e443e48cb926d2 Mon Sep 17 00:00:00 2001 From: Matt Cali Date: Sun, 13 Jul 2025 16:30:41 -0400 Subject: [PATCH 1/5] v2 (#24) --- .github/workflows/summary.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/summary.yml b/.github/workflows/summary.yml index 9b07bb8..8c99ad4 100644 --- a/.github/workflows/summary.yml +++ b/.github/workflows/summary.yml @@ -2,15 +2,15 @@ name: Summarize new issues on: issues: - types: [opened] + types: [opened, edited] jobs: summary: runs-on: ubuntu-latest permissions: issues: write - models: read contents: read + models: read steps: - name: Checkout repository @@ -20,15 +20,26 @@ jobs: id: inference uses: actions/ai-inference@v1 with: + model: "gpt-4o" # Remove the "openai/" prefix + max-tokens: 300 # Increase token limit prompt: | - Summarize the following GitHub issue in one paragraph: - Title: ${{ github.event.issue.title }} - Body: ${{ github.event.issue.body }} + Please provide a concise summary of this GitHub issue in one paragraph: + + Title: "${{ github.event.issue.title }}" + + Body: "${{ github.event.issue.body || 'No description provided.' }}" + + Focus on the main problem, requested feature, or question being raised. - name: Comment with AI summary - run: | - gh issue comment $ISSUE_NUMBER --body '${{ steps.inference.outputs.response }}' + uses: actions/github-script@v7 + with: + script: | + await github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `## 🤖 AI Summary\n\n${{ steps.inference.outputs.response }}` + }); env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - RESPONSE: ${{ steps.inference.outputs.response }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 4d1491ef8172f5418210d7d202f2d5ff91c90ad6 Mon Sep 17 00:00:00 2001 From: Matt Cali Date: Sun, 13 Jul 2025 16:41:14 -0400 Subject: [PATCH 2/5] Resolves: Fix Issue summary github action (#25) * v2 * remove summary * urgent: Fix CSS loading --- src/layouts/main.astro | 1 - 1 file changed, 1 deletion(-) diff --git a/src/layouts/main.astro b/src/layouts/main.astro index ada207c..36bb4bc 100644 --- a/src/layouts/main.astro +++ b/src/layouts/main.astro @@ -24,7 +24,6 @@ const { - {title} From e39ec73eb8fbf38e0fa8d6bf6a8e225abde98411 Mon Sep 17 00:00:00 2001 From: Matt Cali Date: Sun, 13 Jul 2025 16:52:48 -0400 Subject: [PATCH 3/5] feat: Update naming (#26) - renamed controller to galaxy_controller --- src/controllers/{theme_controller.js => galaxy_controller.js} | 0 src/pages/index.astro | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/controllers/{theme_controller.js => galaxy_controller.js} (100%) diff --git a/src/controllers/theme_controller.js b/src/controllers/galaxy_controller.js similarity index 100% rename from src/controllers/theme_controller.js rename to src/controllers/galaxy_controller.js diff --git a/src/pages/index.astro b/src/pages/index.astro index 9d50b12..1ba2a98 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -10,7 +10,7 @@ import Main from '../layouts/main.astro'; >
-
+
From b9e4654cb421bf1d8bb4c9686df2865f1da81564 Mon Sep 17 00:00:00 2001 From: Matt Cali Date: Sun, 13 Jul 2025 18:38:51 -0400 Subject: [PATCH 4/5] feat: Converted NavLinks (#27) - Can now be configured via props - Map over them in main layout props - check for current path and add active styling to link --- src/components/Navbar.astro | 62 ++++++++++++++++++++++++++----------- src/layouts/main.astro | 12 ++++++- 2 files changed, 55 insertions(+), 19 deletions(-) diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index ec8aec3..c477f7e 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -4,10 +4,17 @@ import ThemeToggle from './ThemeToggle.astro'; export interface Props { githubUrl?: string; + links?: Array<{ + href: string; + label: string; + external?: boolean; + active?: boolean; + }>; } const { - githubUrl = "https://github.com/josstei/JoStVIM" + githubUrl = "https://github.com/josstei/JoStVIM", + links = [] } = Astro.props; --- @@ -42,17 +49,28 @@ const {
@@ -84,12 +102,20 @@ const {
- - Documentation - - - Donate - + {links.map((link) => ( + + {link.label} + + ))
\ No newline at end of file diff --git a/src/layouts/main.astro b/src/layouts/main.astro index 36bb4bc..645eeb9 100644 --- a/src/layouts/main.astro +++ b/src/layouts/main.astro @@ -19,6 +19,16 @@ const { githubUrl = "https://github.com/josstei/JoStVIM", showNavbar = true } = Astro.props; + +const currentPath = Astro.url.pathname; + +const navLinks = [ + { href: '/docs', label: 'Documentation' }, + { href: '/donate', label: 'Donate' }, +].map(link => ({ + ...link, + active: currentPath.startsWith(import.meta.env.BASE_URL + link.href) +})); --- @@ -35,7 +45,7 @@ const { - {showNavbar && } + {showNavbar && }
From 8739ef18da6b0a478cd3ffaeea4d2985df509a1e Mon Sep 17 00:00:00 2001 From: Matt Cali Date: Sun, 13 Jul 2025 18:42:47 -0400 Subject: [PATCH 5/5] I thought i already did this but apparently it didn't stick? (#28) - deleted summary.yml --- .github/workflows/summary.yml | 45 ----------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/summary.yml diff --git a/.github/workflows/summary.yml b/.github/workflows/summary.yml deleted file mode 100644 index 8c99ad4..0000000 --- a/.github/workflows/summary.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Summarize new issues - -on: - issues: - types: [opened, edited] - -jobs: - summary: - runs-on: ubuntu-latest - permissions: - issues: write - contents: read - models: read - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Run AI inference - id: inference - uses: actions/ai-inference@v1 - with: - model: "gpt-4o" # Remove the "openai/" prefix - max-tokens: 300 # Increase token limit - prompt: | - Please provide a concise summary of this GitHub issue in one paragraph: - - Title: "${{ github.event.issue.title }}" - - Body: "${{ github.event.issue.body || 'No description provided.' }}" - - Focus on the main problem, requested feature, or question being raised. - - - name: Comment with AI summary - uses: actions/github-script@v7 - with: - script: | - await github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `## 🤖 AI Summary\n\n${{ steps.inference.outputs.response }}` - }); - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file