File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 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 : ' '
Original file line number Diff line number Diff line change 11import { z } from "zod/v4" ;
22
33z ;
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+ ) ;
You can’t perform that action at this time.
0 commit comments