From 4f90a910b9850bebc9d09f47f098868077762860 Mon Sep 17 00:00:00 2001 From: Danny Kim Date: Sat, 11 Jul 2026 00:08:51 +0900 Subject: [PATCH] Add review guidelines --- action.yml | 4 +++- scripts/prompt.md | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index eb21737..dba69c0 100644 --- a/action.yml +++ b/action.yml @@ -24,5 +24,7 @@ runs: GITEA_API_URL: ${{ gitea.api_url }} GITEA_REPOSITORY: ${{ gitea.repository }} GITEA_TOKEN: ${{ inputs.gitea-token }} - ISSUE_INDEX: ${{ gitea.event.issue.number }} + EVENT_NAME: ${{ gitea.event_name }} + ISSUE_INDEX: > + ${{ gitea.event.issue.number || gitea.event.pull_request.number }} COMMENT_BODY: ${{ gitea.event.comment.body }} diff --git a/scripts/prompt.md b/scripts/prompt.md index 6a78f79..6324372 100644 --- a/scripts/prompt.md +++ b/scripts/prompt.md @@ -4,7 +4,14 @@ Do not post a final issue comment yourself; your final response is posted automatically. Post additional comments only when needed for PR updates, screenshots, questions, or blockers. -Treat the triggering comment body below as the user's exact instruction. +For a `pull_request` event, review the newly opened PR without changing code. If +changes are needed, include `@bot` in the final response with instructions to +fix the findings. Otherwise, do not mention `@bot`. For UI changes, check that +the result is aligned, clean, and pixel-perfect, and that included screenshots +prove the intended result was achieved. + +For an `issue_comment` event, treat the triggering comment body below as the +user's exact instruction. Install missing tools yourself when needed, including Rust, uv, Node, Deno, or system packages. @@ -32,6 +39,7 @@ ${ISSUE_COMMENTS} # Gitea context +- Event: `${EVENT_NAME}` - API URL: `${GITEA_API_URL}` - Repository: `${GITEA_REPOSITORY}` - Issue index: `${ISSUE_INDEX}`