From 7ee79cc06396580439f32fc04cbdb675c662957f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Verstraeten?= Date: Wed, 10 Jun 2026 09:05:51 +0200 Subject: [PATCH] Use reusable PR description workflow Replace the inline OpenAI-based PR description job with a reusable workflow call (uug-ai/workflows/.github/workflows/pr-description.yml@main). Removed unused env vars and the checkout/action steps, and pass pr_number and overwrite_description inputs while inheriting repository secrets. This centralizes PR description logic and simplifies the workflow file. --- .github/workflows/pr-description.yaml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pr-description.yaml b/.github/workflows/pr-description.yaml index 3e4b398..6900fd1 100644 --- a/.github/workflows/pr-description.yaml +++ b/.github/workflows/pr-description.yaml @@ -2,25 +2,11 @@ name: Autofill PR description on: pull_request -env: - ORGANIZATION: uugai - PROJECT: ${{ github.event.repository.name }} - PR_NUMBER: ${{ github.event.number }} - 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 }} - openai_model: ${{ secrets.OPENAI_MODEL }} - pull_request_url: https://pr${{ env.PR_NUMBER }}.api.kerberos.lol - overwrite_description: true + uses: uug-ai/workflows/.github/workflows/pr-description.yml@main + with: + pr_number: ${{ github.event.number }} + pull_request_url: "" + overwrite_description: true + secrets: inherit \ No newline at end of file