Skip to content

Commit

Permalink
chore(github): initialize triage_with_ai.yml workflow again (#68292)
Browse files Browse the repository at this point in the history
## Why?

There is no way to test opening an issue without clever hacks. So need
to initialize again to see the payload object, which will be necessary
when I set up a Tool Call → Zod Schema with the :ai-stonks: SDK.

---------

Co-authored-by: JJ Kasper <[email protected]>
  • Loading branch information
samcx and ijjk authored Jul 29, 2024
1 parent c908bc4 commit a0f83f8
Show file tree
Hide file tree
Showing 6 changed files with 2,047 additions and 715 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion .github/actions/next-repo-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "6.0.0",
"@ai-sdk/openai": "^0.0.40",
"@slack/web-api": "^7.0.4",
"slack-block-builder": "^2.8.0"
"ai": "^3.2.38",
"slack-block-builder": "^2.8.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@vercel/ncc": "^0.38.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { info } from '@actions/core'
import { context } from '@actions/github'

async function main() {
info('Triaging issues with AI!')
const issue = context.payload.issue
info(`Issue: ${issue}`)
info(`Issue: ${JSON.stringify(issue, null, 2)}`)
}

main()
Loading

0 comments on commit a0f83f8

Please sign in to comment.