Skip to content

Commit

Permalink
auto pr body
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s committed Jun 7, 2024
1 parent c558eb3 commit 6fa6a33
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ concurrency:
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }}

jobs:
autocomment:
auto:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -27,5 +29,16 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
with:
debug: false
review_simple_changes: false
review_comment_lgtm: false
review_simple_changes: true
review_comment_lgtm: true
- name: Run PR Auto on initial open PR
if: github.event_name == 'pull_request'
id: pr_auto_id
uses: vblagoje/pr-auto@v1
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
user_prompt: ${{ github.event.pull_request.body }}
- name: Update PR description
uses: vblagoje/update-pr@v1
with:
pr-body: ${{ steps.pr_auto_id.outputs.pr-text }}

0 comments on commit 6fa6a33

Please sign in to comment.