Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astro5.0 #950

Merged
merged 6 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"dependencies": {},
"devDependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/starlight": "^0.29.2",
"astro": "^4.16.16",
"@astrojs/starlight": "^0.30.1",
"astro": "^5.0.5",
"rehype-mermaid": "^3.0.0",
"starlight-blog": "^0.15.0",
"starlight-blog": "^0.16.0",
"typescript": "5.7.2",
"zx": "^8.2.4"
}
Expand Down
2 changes: 2 additions & 0 deletions docs/src/content/config.ts → docs/src/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { defineCollection } from "astro:content"
import { docsLoader } from "@astrojs/starlight/loaders"
import { docsSchema } from "@astrojs/starlight/schema"
import { blogSchema } from "starlight-blog/schema"

export const collections = {
docs: defineCollection({
loader: docsLoader(),
schema: docsSchema({
extend: (context) => blogSchema(context),
}),
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/guides/issue-reviewer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
keywords: pull request automation, code review, GitHub Actions, GenAIScript reviewer, PR feedback
---
import { Code } from '@astrojs/starlight/components';
import importedCode from "../../../../../packages/sample/genaisrc/issue-reviewer.genai?raw"
import importedCode from "../../../../../packages/sample/genaisrc/issue-reviewer.genai.mjs?raw"

Check warning on line 9 in docs/src/content/docs/guides/issue-reviewer.mdx

View workflow job for this annotation

GitHub Actions / build

The import statement should use the `.mjs` extension to indicate that it is a module.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import statement should use the .mjs extension to indicate that it is a module.

generated by pr-docs-review-commit import_extension


This guide shows how to automate reviewing issues
with a GenAIScript that provides feedback and code analysis in GitHub Actions.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/[...entry].md.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import { getCollection } from "astro:content"
export const getStaticPaths = (async () => {
const entries = await getCollection("docs")
return entries.map((entry) => ({

Check warning on line 10 in docs/src/pages/[...entry].md.ts

View workflow job for this annotation

GitHub Actions / build

Using `entry.id` instead of `entry.slug` might lead to confusion since `id` is typically used for unique identifiers and `slug` for URLs. Ensure this change aligns with your project's conventions.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using entry.id instead of entry.slug might lead to confusion since id is typically used for unique identifiers and slug for URLs. Ensure this change aligns with your project's conventions.

generated by pr-review-commit id_vs_slug

params: { entry: entry.slug },
params: { entry: entry.id },
props: { entry },

Check failure on line 12 in docs/src/pages/[...entry].md.ts

View workflow job for this annotation

GitHub Actions / build

The `props` object is defined but not used in the return statement. Consider removing it if it's not needed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The props object is defined but not used in the return statement. Consider removing it if it's not needed.

generated by pr-review-commit props_not_used

}))
}) satisfies GetStaticPaths

Expand Down
828 changes: 292 additions & 536 deletions docs/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@octokit/plugin-throttling": "^9.3.2",
"@octokit/rest": "^21.0.2",
"dockerode": "^4.0.2",
"es-toolkit": "^1.30.0",
"es-toolkit": "^1.30.1",
"gpt-tokenizer": "^2.8.1",
"html-to-text": "^9.0.5",
"jimp": "^1.6.0",
Expand Down Expand Up @@ -97,7 +97,7 @@
"commander": "^12.1.0",
"diff": "^7.0.0",
"dotenv": "^16.4.7",
"es-toolkit": "^1.30.0",
"es-toolkit": "^1.30.1",
"esbuild": "^0.24.0",
"execa": "^9.5.2",
"fs-extra": "^11.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
"csv-stringify": "^6.5.2",
"diff": "^7.0.0",
"dotenv": "^16.4.7",
"es-toolkit": "^1.30.0",
"es-toolkit": "^1.30.1",
"esbuild": "^0.24.0",
"fast-xml-parser": "^4.5.0",
"fast-xml-parser": "^4.5.1",
"fetch-retry": "^6.0.0",
"fflate": "^0.8.2",
"file-type": "19.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
"@types/vscode": "^1.95.0",
"@vscode/vsce": "^3.2.1",
"assert": "^2.1.0",
"es-toolkit": "^1.30.0",
"es-toolkit": "^1.30.1",
"markdown-it-github-alerts": "^0.3.0",
"process": "^0.11.10",
"typescript": "5.7.2",
Expand Down
16 changes: 8 additions & 8 deletions slides/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1700,16 +1700,16 @@
integrity sha512-cxh314tzaWwOLqVes2gnnCtvBDcM1UMdn+iFR+UjAn411dPT3tOmqrJjbMd7koZpMAmBM/GqeV4n9ge7JSiJJQ==

"@volar/language-core@~2.4.8":
version "2.4.10"
resolved "https://registry.yarnpkg.com/@volar/language-core/-/language-core-2.4.10.tgz#7d57c29d27f7bce2fa7eb9f3a1fc053a3e28e53f"
integrity sha512-hG3Z13+nJmGaT+fnQzAkS0hjJRa2FCeqZt6Bd+oGNhUkQ+mTFsDETg5rqUTxyzIh5pSOGY7FHCWUS8G82AzLCA==
version "2.4.11"
resolved "https://registry.yarnpkg.com/@volar/language-core/-/language-core-2.4.11.tgz#d95a9ec4f14fbdb41a6a64f9f321d11d23a5291c"
integrity sha512-lN2C1+ByfW9/JRPpqScuZt/4OrUUse57GLI6TbLgTIqBVemdl1wNcZ1qYGEo2+Gw8coYLgCy7SuKqn6IrQcQgg==
dependencies:
"@volar/source-map" "2.4.10"
"@volar/source-map" "2.4.11"

"@volar/[email protected].10":
version "2.4.10"
resolved "https://registry.yarnpkg.com/@volar/source-map/-/source-map-2.4.10.tgz#08cc505613f8e5d39af740e96cec5eb4553576d4"
integrity sha512-OCV+b5ihV0RF3A7vEvNyHPi4G4kFa6ukPmyVocmqm5QzOd8r5yAtiNvaPEjl8dNvgC/lj4JPryeeHLdXd62rWA==
"@volar/[email protected].11":
version "2.4.11"
resolved "https://registry.yarnpkg.com/@volar/source-map/-/source-map-2.4.11.tgz#5876d4531508129724c2755e295db1df98bd5895"
integrity sha512-ZQpmafIGvaZMn/8iuvCFGrW3smeqkq/IIh9F1SdSx9aUl0J4Iurzd6/FhmjNO5g2ejF3rT45dKskgXWiofqlZQ==

"@vue/[email protected]":
version "1.2.5"
Expand Down
23 changes: 11 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4051,10 +4051,10 @@ es-object-atoms@^1.0.0:
dependencies:
es-errors "^1.3.0"

es-toolkit@^1.30.0:
version "1.30.0"
resolved "https://registry.yarnpkg.com/es-toolkit/-/es-toolkit-1.30.0.tgz#6c2cf2255e976e50fe52b378b656b25a2ad58281"
integrity sha512-zNAUbllGcnY4X0v7H2AGEyl25fub0Dlds6MWhOZHgpvUFRfg2HR554yBTjdv8btEWx8k64lQeUamkCOEMshIig==
es-toolkit@^1.30.1:
version "1.30.1"
resolved "https://registry.yarnpkg.com/es-toolkit/-/es-toolkit-1.30.1.tgz#311be8eec88f53b0b1a9d40117f3f3c1e763e274"
integrity sha512-ZXflqanzH8BpHkDhFa10bBf6ONDCe84EPUm7SSICGzuuROSluT2ynTPtwn9PcRelMtorCRozSknI/U0MNYp0Uw==

es5-ext@^0.10.35, es5-ext@^0.10.62, es5-ext@^0.10.63, es5-ext@^0.10.64, es5-ext@~0.10.14:
version "0.10.64"
Expand Down Expand Up @@ -4284,10 +4284,10 @@ [email protected]:
dependencies:
strnum "^1.0.5"

fast-xml-parser@^4.4.1, fast-xml-parser@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.0.tgz#2882b7d01a6825dfdf909638f2de0256351def37"
integrity sha512-/PlTQCI96+fZMAOLMZK4CWG1ItCbfZ/0jx7UIJFChPNrx7tcEgerUgWbeieCM9MfHInUDyK8DWYZ+YrywDJuTg==
fast-xml-parser@^4.4.1, fast-xml-parser@^4.5.1:
version "4.5.1"
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.1.tgz#a7e665ff79b7919100a5202f23984b6150f9b31e"
integrity sha512-y655CeyUQ+jj7KBbYMc4FG01V8ZQqjN+gDYGJ50RtfsUB8iG9AmwmwoAgeKLJdmueKKMrH1RJ7yXHTSoczdv5w==
dependencies:
strnum "^1.0.5"

Expand Down Expand Up @@ -7128,9 +7128,9 @@ tempy@^3.1.0:
unique-string "^3.0.0"

text-decoder@^1.1.0:
version "1.2.2"
resolved "https://registry.yarnpkg.com/text-decoder/-/text-decoder-1.2.2.tgz#63dd2401c43895cecb292e2407db184b50ad60ac"
integrity sha512-/MDslo7ZyWTA2vnk1j7XoDVfXsGk3tp+zFEJHJGm0UjIlQifonVFwlVbQDFh8KJzTBnT8ie115TYqir6bclddA==
version "1.2.3"
resolved "https://registry.yarnpkg.com/text-decoder/-/text-decoder-1.2.3.tgz#b19da364d981b2326d5f43099c310cc80d770c65"
integrity sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==
dependencies:
b4a "^1.6.4"

Expand Down Expand Up @@ -7667,7 +7667,6 @@ xdg-basedir@^5.1.0:

"xlsx@https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz":
version "0.20.2"
uid "0f64eeed3f1a46e64724620c3553f2dbd3cd2d7d"
resolved "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz#0f64eeed3f1a46e64724620c3553f2dbd3cd2d7d"

xml-parse-from-string@^1.0.0:
Expand Down
Loading