From 9232adfc4e479ed88af0421c640509d3227d23d3 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 07:06:36 -0500 Subject: [PATCH 01/11] Add MDX broken link checker workflow --- .github/workflows/link-checker.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/link-checker.yml diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml new file mode 100644 index 0000000000..1d3afd12df --- /dev/null +++ b/.github/workflows/link-checker.yml @@ -0,0 +1,18 @@ +name: MDX Broken Link Checker +on: [pull_request] +jobs: + check-links: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: MDX Broken Link Checker + uses: KaiSpencer/gh-action-check-broken-links@v0 + with: + # Required: The base URL to check links against + # For example: /pages/foo.mdx will be checked against https://mysite.com/foo + baseUrl: 'https://www.prisma.io' + + # Optional: Provide a directory to check for files + # Will recurse all sub directories + directory: 'content' \ No newline at end of file From 7c0e0a909f12379050fde0bfcd9112ec518a46bc Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 07:50:27 -0500 Subject: [PATCH 02/11] hashicorp checker --- .github/workflows/link-checker.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 1d3afd12df..c33d315c92 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -1,18 +1,10 @@ -name: MDX Broken Link Checker +name: Broken Link Checker on: [pull_request] jobs: check-links: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: MDX Broken Link Checker - uses: KaiSpencer/gh-action-check-broken-links@v0 - with: - # Required: The base URL to check links against - # For example: /pages/foo.mdx will be checked against https://mysite.com/foo - baseUrl: 'https://www.prisma.io' - - # Optional: Provide a directory to check for files - # Will recurse all sub directories - directory: 'content' \ No newline at end of file + - name: HashiCorp's Link Checker + uses: hashicorp/gh-action-check-broken-links@v1 + with: + baseUrl: 'https://prisma.io' \ No newline at end of file From d76378c9f01c055eb995de3fbbfb19fe54744f50 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 07:53:17 -0500 Subject: [PATCH 03/11] broken link added --- content/800-guides/220-astro.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/800-guides/220-astro.mdx b/content/800-guides/220-astro.mdx index 01e84cba9d..dfd99d10e8 100644 --- a/content/800-guides/220-astro.mdx +++ b/content/800-guides/220-astro.mdx @@ -16,7 +16,7 @@ In this guide, you'll learn to integrate Prisma ORM with a Prisma Postgres datab ## Prerequisites - [Node.js 18+](https://nodejs.org) -- [Astro VSCode extension (recommended)](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode) +- [Astro VSCode extension (recommended)](https://marketplace.dio.com/items?itemName=astro-build.astro-vscode) ## 1. Set up your project From 284c3587301b1f811e68fb61d844f7d38c488ff9 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 07:55:24 -0500 Subject: [PATCH 04/11] Lychee broken link checker --- .github/workflows/link-checker.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index c33d315c92..1ea27ababf 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -3,8 +3,21 @@ on: [pull_request] jobs: check-links: runs-on: ubuntu-latest + permissions: + issues: write steps: - - name: HashiCorp's Link Checker - uses: hashicorp/gh-action-check-broken-links@v1 + - uses: actions/checkout@v4 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v2 with: - baseUrl: 'https://prisma.io' \ No newline at end of file + fail: false + + - name: Create Issue From File + if: steps.lychee.outputs.exit_code != 0 + uses: peter-evans/create-issue-from-file@v5 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: report, automated issue \ No newline at end of file From 4ca317fb5071b46a39d7cdaf62dde458f235cec2 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 07:58:33 -0500 Subject: [PATCH 05/11] Updated config --- .github/workflows/link-checker.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 1ea27ababf..d973df2136 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -4,7 +4,7 @@ jobs: check-links: runs-on: ubuntu-latest permissions: - issues: write + issues: write steps: - uses: actions/checkout@v4 @@ -12,6 +12,9 @@ jobs: id: lychee uses: lycheeverse/lychee-action@v2 with: + args: './**/*.mdx' + format: markdown + output: ./lychee/out.md fail: false - name: Create Issue From File From cc99c0a766a0ca2f903c5155a19d324fc4cc40c9 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 08:08:54 -0500 Subject: [PATCH 06/11] mardown link check --- .github/workflows/link-checker.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index d973df2136..405d122823 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -3,24 +3,6 @@ on: [pull_request] jobs: check-links: runs-on: ubuntu-latest - permissions: - issues: write steps: - - uses: actions/checkout@v4 - - - name: Link Checker - id: lychee - uses: lycheeverse/lychee-action@v2 - with: - args: './**/*.mdx' - format: markdown - output: ./lychee/out.md - fail: false - - - name: Create Issue From File - if: steps.lychee.outputs.exit_code != 0 - uses: peter-evans/create-issue-from-file@v5 - with: - title: Link Checker Report - content-filepath: ./lychee/out.md - labels: report, automated issue \ No newline at end of file + - uses: actions/checkout@master + - uses: gaurav-nelson/github-action-markdown-link-check@v1 \ No newline at end of file From 1f25feeac913878bcd54c42d9ee32d1e2abbb9b7 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 08:11:32 -0500 Subject: [PATCH 07/11] linkinator --- .github/workflows/link-checker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 405d122823..5a773d64c4 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -4,5 +4,9 @@ jobs: check-links: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 \ No newline at end of file + - uses: actions/checkout@v3 + - uses: JustinBeckwith/linkinator-action@v1 + with: + paths: content/**/*.md + concurrency: 1 + markdown: true \ No newline at end of file From 1cdffb005fe83e93e93f0fd01246a2623acc9718 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 08:12:53 -0500 Subject: [PATCH 08/11] updated for mdx --- .github/workflows/link-checker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 5a773d64c4..4d9460c19a 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -4,9 +4,9 @@ jobs: check-links: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: JustinBeckwith/linkinator-action@v1 with: - paths: content/**/*.md + paths: content/**/*.mdx concurrency: 1 markdown: true \ No newline at end of file From 2c71b4487912737d7eb4c150172d5d96fef7120b Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 08:14:40 -0500 Subject: [PATCH 09/11] Updated --- .github/workflows/link-checker.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 4d9460c19a..105e72cae6 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -5,8 +5,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: JustinBeckwith/linkinator-action@v1 + - name: Link Checker + uses: JustinBeckwith/linkinator-action@v1 with: paths: content/**/*.mdx concurrency: 1 - markdown: true \ No newline at end of file + markdown: true + fail: false + verbosity: info \ No newline at end of file From 0017cdd3ab12942303568b1c6f4d773323367a8a Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 10:30:13 -0500 Subject: [PATCH 10/11] linkspector given write perms --- .github/workflows/link-checker.yml | 15 --------------- .github/workflows/linkspector.yml | 4 +++- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/link-checker.yml diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml deleted file mode 100644 index 105e72cae6..0000000000 --- a/.github/workflows/link-checker.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Broken Link Checker -on: [pull_request] -jobs: - check-links: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Link Checker - uses: JustinBeckwith/linkinator-action@v1 - with: - paths: content/**/*.mdx - concurrency: 1 - markdown: true - fail: false - verbosity: info \ No newline at end of file diff --git a/.github/workflows/linkspector.yml b/.github/workflows/linkspector.yml index ca1a4df92c..1fb12bdc34 100644 --- a/.github/workflows/linkspector.yml +++ b/.github/workflows/linkspector.yml @@ -4,6 +4,8 @@ jobs: check-links: name: runner / linkspector runs-on: ubuntu-22.04 + permissions: + contents: write steps: - uses: actions/checkout@v4 - name: Run linkspector @@ -13,4 +15,4 @@ jobs: reporter: github-pr-check fail_on_error: true filter_mode: nofilter - config_file: .github/workflows/config/.linkspector.yml + config_file: .github/workflows/config/.linkspector.yml \ No newline at end of file From cff040b4cff11162747fafdfccdc6042ac2e123f Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 9 Jul 2025 10:46:35 -0500 Subject: [PATCH 11/11] reverted astro link break --- content/800-guides/220-astro.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/800-guides/220-astro.mdx b/content/800-guides/220-astro.mdx index dfd99d10e8..01e84cba9d 100644 --- a/content/800-guides/220-astro.mdx +++ b/content/800-guides/220-astro.mdx @@ -16,7 +16,7 @@ In this guide, you'll learn to integrate Prisma ORM with a Prisma Postgres datab ## Prerequisites - [Node.js 18+](https://nodejs.org) -- [Astro VSCode extension (recommended)](https://marketplace.dio.com/items?itemName=astro-build.astro-vscode) +- [Astro VSCode extension (recommended)](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode) ## 1. Set up your project