From 33f7cbf0a8e8424e7e6cd7043726b432fb2c3da3 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Thu, 21 Dec 2023 11:11:40 +0800 Subject: [PATCH] the create PR CI --- .github/workflows/create-pr.yml | 21 +++++++++++++++++++++ .gitignore | 2 ++ prompts/ui-gen.ts | 1 + 3 files changed, 24 insertions(+) create mode 100644 .github/workflows/create-pr.yml create mode 100644 prompts/ui-gen.ts diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml new file mode 100644 index 0000000..9136f7a --- /dev/null +++ b/.github/workflows/create-pr.yml @@ -0,0 +1,21 @@ +name: Create PR + +on: + issues: + types: [opened, edited] + issue_comment: + types: [created, edited, deleted] + +jobs: + handle_issue: + runs-on: ubuntu-latest + name: Create PR + steps: + - name: Setup Deno + uses: denoland/setup-deno@v1 + with: + deno-version: 1.38.3 + - name: Test Deno + run: deno run https://deno.land/std@0.198.0/examples/welcome.ts + - name: Dump Env + run: deno run -A prompts/ui-gen.ts diff --git a/.gitignore b/.gitignore index c6bba59..ea9fa00 100644 --- a/.gitignore +++ b/.gitignore @@ -128,3 +128,5 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* + +.vscode \ No newline at end of file diff --git a/prompts/ui-gen.ts b/prompts/ui-gen.ts new file mode 100644 index 0000000..42b01d4 --- /dev/null +++ b/prompts/ui-gen.ts @@ -0,0 +1 @@ +console.log(Deno.env.toObject());