Skip to content

Commit 93553bd

Browse files
committed
Add needs info
1 parent 3de2b63 commit 93553bd

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/stale.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# .github/workflows/auto-close.yml
2+
name: Auto-close labeled issues
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # every day at midnight UTC
6+
workflow_dispatch:
7+
jobs:
8+
auto-close:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v9 # Close stale issues & PRs :contentReference[oaicite:0]{index=0}
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
stale-issue-label: 'needs-info' # label you’ll add to trigger closing
15+
days-before-stale: -1 # don't mark things with needs-info
16+
days-before-close: 5 # replace 7 with your X days
17+
only-labels: 'needs-info' # ignore all other issues
18+
remove-stale-when-updated: false
19+
stale-issue-message: ''
20+
close-issue-message: ''

play.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
import { z } from "zod/v4";
22

33
z;
4+
5+
console.log(
6+
z
7+
.object({
8+
a: z.string(),
9+
})
10+
.transform((data) => {
11+
return {
12+
...data,
13+
tx: true,
14+
};
15+
})
16+
.safeParse({ a: "1" })
17+
);

0 commit comments

Comments
 (0)