name: Autofill PR description

on: pull_request

jobs:
  openai-pr-description:
    uses: uug-ai/workflows/.github/workflows/pr-description.yml@main
    with:
      pr_number: ${{ github.event.number }}
      pull_request_url: ""
      overwrite_description: true
    secrets:
      TOKEN: ${{ secrets.TOKEN }}
      AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
      OPENAI_MODEL: ${{ secrets.OPENAI_MODEL }}
      AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
      AZURE_OPENAI_VERSION: ${{ secrets.AZURE_OPENAI_VERSION }}