chore: Enhance prompt

This commit is contained in:
Christian Kußowski 2025-05-18 10:20:29 +02:00
parent b1da47561f
commit ae4459a766
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -16,13 +16,16 @@ jobs:
run: echo "issues=$(gh issue list --search '${{ env.title }}' --json title,body,url)" >> $GITHUB_ENV
- name: Let Gemini reply
run: |
echo "${{ env.issues }}"
RESPONSE=$(curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${{ secrets.GEMINI_KEY }}" \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"contents": [{
"parts":[
{"text": "Please write a very short and nice response to this new issue and link possible duplications.\n\n${{ env.title }}\n${{ env.body }}\n\nPossible Duplications:\n${{ env.issues }}"}
{"text": "Please write a very short and nice response to this new issue. If existing link possible duplications by using markdown links."},
{"text": "${{ env.title }}\n${{ env.body }}"},
{"text": "Possible duplications:\n${{ env.issues }}"}
]
}]
}' | jq -r '.candidates[0].content.parts[0].text')