|
|
@ -10,6 +10,7 @@ jobs:
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
title: ${{ github.event.issue.title }}
|
|
|
|
title: ${{ github.event.issue.title }}
|
|
|
|
body: ${{ github.event.issue.title }}
|
|
|
|
body: ${{ github.event.issue.title }}
|
|
|
|
|
|
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Search for similar issues
|
|
|
|
- name: Search for similar issues
|
|
|
|
run: echo "issues=$(gh issue list --search '${{ env.title }}' --json title,body,url)" >> $GITHUB_ENV
|
|
|
|
run: echo "issues=$(gh issue list --search '${{ env.title }}' --json title,body,url)" >> $GITHUB_ENV
|
|
|
@ -25,6 +26,7 @@ jobs:
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
}' | jq -r '.candidates[0].content.parts[0].text')
|
|
|
|
}' | jq -r '.candidates[0].content.parts[0].text')
|
|
|
|
|
|
|
|
echo $RESPONSE
|
|
|
|
gh issue comment ${{ github.event.issue.number }} --body "$RESPONSE"
|
|
|
|
gh issue comment ${{ github.event.issue.number }} --body "$RESPONSE"
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
|
|
|
|
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
|