From 5a3c1d6c9d3536079587f6688d3efec9165e2a3b Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Thu, 16 Jan 2025 08:05:05 +0100 Subject: [PATCH] Create pr-description.yaml --- .github/workflows/pr-description.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/pr-description.yaml diff --git a/.github/workflows/pr-description.yaml b/.github/workflows/pr-description.yaml new file mode 100644 index 00000000..d0bfdb4f --- /dev/null +++ b/.github/workflows/pr-description.yaml @@ -0,0 +1,19 @@ +name: Autofill PR description + +on: pull_request + +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 }} + overwrite_description: true