Skip to content

Commit

Permalink
Adding AIPR.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanmtz authored Dec 29, 2023
1 parent 8eb686f commit 8685010
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/AIPR.yml
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
on:
issues:
types: [labeled]
issue_comment:
types: [created]

permissions:
contents: write
issues: write
pull-requests: write

jobs:
Creating-PR-using-AIPR:
if: ${{ (github.event_name == 'issues' &&
contains( github.event.label.name, 'AIPR')) ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains( github.event.comment.body, 'Create PR with AIPR 🚀')) }}
runs-on: ubuntu-latest
steps:
- name: Executing AIPR action
uses: alexanmtz/AIPR@main
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
openai_tokens: 2000

0 comments on commit 8685010

Please sign in to comment.