File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 55 discussion :
66 types : [created]
77
8+ permissions :
9+ discussions : write
10+
811jobs :
912 lock_discussion :
1013 runs-on : ubuntu-latest
3740 ' --jq '.data.lockLockable.lockedRecord.locked')"
3841
3942 echo "LOCKED =" $lockSucceeded
40- echo '${{ github.event.discussion.number }}' | jq -r '"https://github.com/vercel/community /discussions/\(.)"'
43+ echo '${{ github.event.discussion.number }}' | jq -r '"https://github.com/vercel/ai /discussions/\(.)"'
4144 env :
4245 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4346 DISCUSSION_ID : ${{ github.event.discussion.node_id }}
Original file line number Diff line number Diff line change 77 - cron : ' 45 * * * *'
88 workflow_dispatch :
99
10+ permissions :
11+ discussions : write
12+
1013jobs :
1114 close_discussion :
1215 runs-on : ubuntu-latest
1316 steps :
1417 - name : get-stale-discussions
1518 id : get-stale-discussions
1619 run : |
17- staleDiscussionsQuery="repo:vercel/community updated:<$(date -d "-30days" -I) sort:updated-asc is:unlocked"
20+ staleDiscussionsQuery="repo:vercel/ai updated:<$(date -d "-30days" -I) sort:updated-asc is:unlocked"
1821
1922 discussions=$(gh api graphql -F searchQuery="$staleDiscussionsQuery" -f query='
2023 query oldDiscussions($searchQuery: String!) {
You can’t perform that action at this time.
0 commit comments