From f3f03cc827fd46ea3261ca6e7f6e63efb15fc67e Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Sat, 18 Jan 2025 09:12:05 +0100 Subject: [PATCH] add pr description workflow --- .github/pr-description.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/pr-description.yml diff --git a/.github/pr-description.yml b/.github/pr-description.yml new file mode 100644 index 0000000..f607658 --- /dev/null +++ b/.github/pr-description.yml @@ -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 \ No newline at end of file