Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 0 additions & 5 deletions .changeset/crisp-tables-allow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-dynamic-file-endpoint-trailing-slash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/harden-rss-field-escaping.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sharp-bags-build.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sharp-cities-feel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tasty-icons-wink.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-forwarded-host.md

This file was deleted.

31 changes: 31 additions & 0 deletions .github/scripts/stale-issues.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { execSync } from 'node:child_process';
import { parseArgs } from 'node:util';

const { values } = parseArgs({
options: {
token: { type: 'string' },
},
});

if (!values.token) {
console.error('Usage: node --experimental-strip-types stale-issues.ts --token <github-token>');
process.exit(1);
}

const DAYS_INACTIVE = 3;
// Convert days to milliseconds: days * hours * minutes * seconds * ms
const cutoff = new Date(Date.now() - DAYS_INACTIVE * 24 * 60 * 60 * 1000);

const issues: { number: number; updatedAt: string }[] = JSON.parse(
execSync(
`gh issue list --label "triage: needs reproduction" --state open --json number,updatedAt --limit 500 --repo withastro/astro`,
{ encoding: 'utf-8', env: { ...process.env, GH_TOKEN: values.token } },
),
);

const stale = issues
.filter((issue) => new Date(issue.updatedAt) < cutoff)
.map((issue) => issue.number);

// biome-ignore lint/suspicious/noConsole: valid for CI
console.log(JSON.stringify(stale));
35 changes: 35 additions & 0 deletions .github/workflows/issue-state-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Close issues

on:
schedule:
- cron: "0 0 * * *"

jobs:
close-issues:
if: github.repository == 'withastro/astro'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24.18.0

- name: Find stale issues
id: find-stale
run: echo "issues=$(node --experimental-strip-types .github/scripts/stale-issues.ts --token ${{ secrets.GITHUB_TOKEN }})" >> "$GITHUB_OUTPUT"

- name: Close stale issues
if: steps.find-stale.outputs.issues != '[]'
env:
GH_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
run: |
echo '${{ steps.find-stale.outputs.issues }}' | jq -r '.[]' | while read -r issue; do
gh issue comment "$issue" --repo ${{ github.repository }} --body "This issue has been automatically closed because it has been inactive for more than 3 days and it does not have a minimal reproduction."
gh issue close "$issue" --repo ${{ github.repository }} --reason "not planned"
echo "Closed issue #$issue"
done
58 changes: 29 additions & 29 deletions .github/workflows/issue-wontfix.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# Action taken down due to https://www.stepsecurity.io/blog/actions-cool-issues-helper-github-action-compromised-all-tags-point-to-imposter-commit-that-exfiltrates-ci-cd-credentials
#name: "Issue: Wontfix"
#
#on:
# issues:
# types: [labeled]
#
#jobs:
# wontfix:
# if: github.event.label.name == 'wontfix'
# runs-on: ubuntu-latest
# permissions:
# issues: write
# steps:
# - uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3.8.0
# with:
# actions: "create-comment, close-issue"
# token: ${{ secrets.GITHUB_TOKEN }}
# issue-number: ${{ github.event.issue.number }}
# body: |
# Hello!
#
# This is an automated message to let you know that we've triaged this issue and unfortunately, we will be closing it as "not planned".
#
# We sometimes have to close good ideas (even great ones!) because our limited resources simply do not allow us to pursue all possible features and improvements, and when fixing bugs we have to balance the impact of the bug against the effort required for the fix. Before closing this we considered several factors such as the amount of work involved, the severity of the problem, the number of people affected, whether a workaround is available, and the ongoing cost of maintenance.
#
# If you're seeing this message and believe you can contribute to this issue, please consider submitting a PR yourself. Astro encourages [community contributions](https://docs.astro.build/en/contribute/)!
#
# If you have more questions, come and say hi in the [Astro Discord](https://astro.build/chat).
name: "Issue: Wontfix"

on:
issues:
types: [labeled]

jobs:
wontfix:
if: github.event.label.name == 'wontfix'
runs-on: ubuntu-latest
steps:
- name: Comment and close issue
env:
GH_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPO: ${{ github.repository }}
BODY: |
Hello!

This is an automated message to let you know that we've triaged this issue and unfortunately, we will be closing it as "not planned".

We sometimes have to close good ideas (even great ones!) because our limited resources simply do not allow us to pursue all possible features and improvements, and when fixing bugs we have to balance the impact of the bug against the effort required for the fix. Before closing this we considered several factors such as the amount of work involved, the severity of the problem, the number of people affected, whether a workaround is available, and the ongoing cost of maintenance.

If you're seeing this message and believe you can contribute to this issue, please consider submitting a PR yourself. Astro encourages [community contributions](https://docs.astro.build/en/contribute/)!

If you have more questions, come and say hi in the [Astro Discord](https://astro.build/chat).
run: |
gh issue comment "$ISSUE_NUMBER" --repo "$REPO" --body "$BODY"
gh issue close "$ISSUE_NUMBER" --repo "$REPO" --reason "not planned"
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"mri": "^1.2.0",
"port-authority": "^2.0.1",
"pretty-bytes": "^7.1.0",
"sharp": "^0.34.3",
"sharp": "^0.35.0",
"tinyexec": "^1.0.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@astrojs/node": "^11.0.0",
"astro": "^7.0.3",
"astro": "^7.0.4",
"hono": "^4.12.14"
}
}
2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^7.0.3"
"astro": "^7.0.4"
}
}
6 changes: 3 additions & 3 deletions examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"dependencies": {
"@astrojs/mdx": "^7.0.0",
"@astrojs/rss": "^4.0.18",
"@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.3",
"astro": "^7.0.3",
"sharp": "^0.34.3"
"astro": "^7.0.4",
"sharp": "^0.35.0"
}
}
6 changes: 1 addition & 5 deletions examples/blog/src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,4 @@ const { title, description, image = FallbackImage } = Astro.props;
<meta property="og:image" content={new URL(image.src, Astro.url)} />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={Astro.url} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={new URL(image.src, Astro.url)} />
<meta name="twitter:card" content="summary_large_image" />
2 changes: 1 addition & 1 deletion examples/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^7.0.3"
"astro": "^7.0.4"
},
"peerDependencies": {
"astro": "^5.0.0 || ^6.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/container-with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@astrojs/react": "^6.0.0",
"astro": "^7.0.3",
"astro": "^7.0.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vitest": "^4.1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@astrojs/alpinejs": "^1.0.0",
"@types/alpinejs": "^3.13.11",
"alpinejs": "^3.15.8",
"astro": "^7.0.3"
"astro": "^7.0.4"
}
}
2 changes: 1 addition & 1 deletion examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@astrojs/vue": "^7.0.0",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"astro": "^7.0.3",
"astro": "^7.0.4",
"preact": "^10.28.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@astrojs/preact": "^6.0.0",
"@preact/signals": "^2.8.1",
"astro": "^7.0.3",
"astro": "^7.0.4",
"preact": "^10.28.4"
}
}
2 changes: 1 addition & 1 deletion examples/framework-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@astrojs/react": "^6.0.0",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"astro": "^7.0.3",
"astro": "^7.0.4",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^7.0.0",
"astro": "^7.0.3",
"astro": "^7.0.4",
"solid-js": "^1.9.11"
}
}
2 changes: 1 addition & 1 deletion examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@astrojs/svelte": "^9.0.0",
"astro": "^7.0.3",
"astro": "^7.0.4",
"svelte": "^5.53.5"
}
}
2 changes: 1 addition & 1 deletion examples/framework-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@astrojs/vue": "^7.0.0",
"astro": "^7.0.3",
"astro": "^7.0.4",
"vue": "^3.5.29"
}
}
2 changes: 1 addition & 1 deletion examples/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"dependencies": {
"@astrojs/node": "^11.0.0",
"astro": "^7.0.3"
"astro": "^7.0.4"
}
}
2 changes: 1 addition & 1 deletion examples/integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^7.0.3"
"astro": "^7.0.4"
},
"peerDependencies": {
"astro": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^7.0.3"
"astro": "^7.0.4"
}
}
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^7.0.3"
"astro": "^7.0.4"
}
}
2 changes: 1 addition & 1 deletion examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@astrojs/node": "^11.0.0",
"@astrojs/svelte": "^9.0.0",
"astro": "^7.0.3",
"astro": "^7.0.4",
"svelte": "^5.53.5"
}
}
4 changes: 2 additions & 2 deletions examples/starlog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^7.0.3",
"astro": "^7.0.4",
"sass": "^1.97.3",
"sharp": "^0.34.3"
"sharp": "^0.35.0"
},
"engines": {
"node": ">=22.12.0"
Expand Down
10 changes: 0 additions & 10 deletions examples/starlog/src/components/SEO.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const og = {
name,
title,
description,
canonicalURL,
image,
locale,
type: 'website',
Expand All @@ -51,11 +50,6 @@ const og = {

const twitter = {
name,
title,
description,
canonicalURL,
image,
locale,
card: 'summary_large_image',
...Astro.props.twitter,
};
Expand All @@ -82,7 +76,3 @@ function normalizeImageUrl(image: string | ImageMetadata) {
<!-- Twitter Tags -->
<meta name="twitter:card" content={twitter.card} />
<meta name="twitter:site" content={twitter.handle} />
<meta name="twitter:title" content={twitter.title} />
<meta name="twitter:description" content={twitter.description} />
{twitter.image && <meta name="twitter:image" content={normalizeImageUrl(twitter.image.src)} />}
{twitter.image && <meta name="twitter:image:alt" content={twitter.image.alt} />}
2 changes: 1 addition & 1 deletion examples/toolbar-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@types/node": "^22.10.6",
"astro": "^7.0.3"
"astro": "^7.0.4"
},
"engines": {
"node": ">=22.12.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^2.0.1",
"astro": "^7.0.3"
"astro": "^7.0.4"
}
}
Loading
Loading