PR Description Generator #1708
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Description Generator | |
on: | |
pull_request: | |
types: [opened, reopened, ready_for_review] | |
issue_comment: | |
# Reply to an existing PR to generate description (commenter requires PR write access) | |
# Requires `/gpt-create-pr` commands to invoke | |
types: [created] | |
jobs: | |
llm-pr-generator: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
repository-projects: read | |
steps: | |
- name: Generate PR Description | |
uses: smartcontractkit/.github/actions/llm-pr-writer@0dd7de0bab24dcc169499ac8c71f7315cc8ca98e # [email protected] | |
with: | |
gh-token: ${{ github.token }} | |
openai-api-key: ${{ secrets.OPENAI_API_KEY }} | |
openai-model: 'gpt-4-0125-preview' | |
exclude-paths: 'artifacts/*;target/*;' | |
workflow-ref: '763b4118dac59b74e3f4aef343918b7f334fb8a0' # 0.3.0 |