Unverified Commit a0f83f82 authored by Sam Ko's avatar Sam Ko Committed by GitHub

chore(github): initialize triage_with_ai.yml workflow again (#68292)

## 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: 's avatarJJ Kasper <jj@jjsweb.site>
parent c908bc4c
......@@ -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"
......
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()
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -12,7 +12,7 @@ jobs:
- uses: actions/setup-node@v4
- run: corepack enable
- name: 'Send notification to Slack (AI-powered)'
run: node ./github/actions/next-repo-actions/dist/triage-issues-with-ai/index.js
run: node ./.github/actions/next-repo-actions/dist/triage-issues-with-ai/index.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment