-
Notifications
You must be signed in to change notification settings - Fork 137
32 lines (30 loc) · 1.03 KB
/
create-pr.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
name: Create PR
on:
issues:
types: [edited, labeled, unlabeled]
issue_comment:
types: [created, edited, deleted]
pull_request_review_comment:
types: [created, edited, deleted]
jobs:
handle_issue:
runs-on: ubuntu-latest
name: Create PR
if: ${{ !contains(github.event.comment.body, '[vx.dev]') && !contains(github.event.comment.body, '[Dewhale]') && github.event.comment.user.type != 'bot'}}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: 1.38.3
- name: generate UI
env:
# auto set by GitHub, details in
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
WHITELIST: ${{ secrets.WHITELIST }}
CONFIG: ${{ vars.CONFIG }}
ACTOR: ${{ github.actor }}
run: deno run -A prompts/entry.ts