Skip to content

Commit

Permalink
filter some events
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyz0112 committed Dec 21, 2023
1 parent 657c78f commit b4a5203
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
handle_issue:
runs-on: ubuntu-latest
name: Create PR
if: "!contains(github.event.comment.body , '[vx.dev]')"
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
7 changes: 6 additions & 1 deletion prompts/ui-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,12 @@ async function main() {
const eventName = Deno.env.get("GITHUB_EVENT_NAME");
assert(eventName, "failed to get event name");

console.log(githubEvent.action, eventName, githubEvent.issue);
console.log(
githubEvent.action,
eventName,
githubEvent.issue,
githubEvent.comment
);

const isPr = Boolean(githubEvent.issue.pull_request);

Expand Down

0 comments on commit b4a5203

Please sign in to comment.