-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.16 KB
/
create_component.yml
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
29
30
31
32
33
34
35
name: Create Component
on:
issues:
types: [opened]
jobs:
issue_handler:
if: contains(github.event.issue.labels.*.name, 'create-component')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Create Component (GPT 3.5 Turbo)
uses: ./.github/actions/create-component
id: code_gen
with:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ISSUE_BODY: ${{ github.event.issue.body }}
LLM_MODEL: "gpt-3.5-turbo-0613"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_API_KEY }}
labels: "create-component"
title: "${{ steps.code_gen.outputs.componentName }} - closes #${{ github.event.issue.number }}"
commit-message: "${{ github.event.issue.title }} - closes #${{ github.event.issue.number }}"
body: ${{ github.event.issue.body }}
branch: "issue-${{ github.event.issue.number }}-update"
add-paths: |
src/components/atoms
.github/ISSUE_TEMPLATE/update_component.yml