Skip to content

Commit

Permalink
Create pr-description.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Jan 16, 2025
1 parent 84f7f84 commit 5a3c1d6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pr-description.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5a3c1d6

Please sign in to comment.