-
-
Notifications
You must be signed in to change notification settings - Fork 188
28 lines (25 loc) · 729 Bytes
/
AIPR.yml
File metadata and controls
28 lines (25 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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: 1400
file_chunks: 0
target_branch: master