Skip to content

Refactored the GitHub workflow to run only if the actor is not Dependabot. Updated the return type of the method in the class to use the constants for success and failure. #64

Refactored the GitHub workflow to run only if the actor is not Dependabot. Updated the return type of the method in the class to use the constants for success and failure.

Refactored the GitHub workflow to run only if the actor is not Dependabot. Updated the return type of the method in the class to use the constants for success and failure. #64

name: Autofill PR Description
on:
workflow_dispatch:
pull_request:
branches:
- main
permissions:
pull-requests: write
contents: write
jobs:
openai-pr-description:
runs-on: ubuntu-22.04
# Run the job only if the actor is NOT Dependabot
if: ${{ !startsWith(github.actor, 'dependabot') }}
steps:
- uses: platisd/openai-pr-description@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
openai_api_key: ${{ secrets.OPEN_AI_PR_DESCRIPTION_API_KEY }}