mirror of
https://github.com/kerberos-io/agent.git
synced 2026-11-15 21:50:47 +00:00
24 lines
798 B
YAML
24 lines
798 B
YAML
name: Autofill PR description
|
|
|
|
on: pull_request
|
|
|
|
env:
|
|
PR_NUMBER: ${{ github.event.number }}
|
|
PROJECT: ${{ github.event.repository.name }}
|
|
|
|
jobs:
|
|
openai-pr-description:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Autofill PR description if empty using OpenAI
|
|
uses: cedricve/azureopenai-pr-description@master
|
|
with:
|
|
github_token: ${{ secrets.TOKEN }}
|
|
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
|
|
azure_openai_api_key: ${{ secrets.AZURE_OPENAI_API_KEY }}
|
|
azure_openai_endpoint: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
|
|
azure_openai_version: ${{ secrets.AZURE_OPENAI_VERSION }}
|
|
pull_request_url: https://pr${{ env.PR_NUMBER }}.app.kerberos.lol
|
|
overwrite_description: true |