BLOG-79 AI review bot #83
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "BLOG-79_ai_review_bot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Pod Configuration
Package Changes
No response
Screenshots
No response
Reference
Resolves #79
Checklist
/improve
command/improve
PR Code Suggestions ✨
Fix incorrect PR number in API call
The
gitea.ref_name
variable provides the full Git reference (e.g.,refs/pull/123/head
), which is not the correct pull request number for the Gitea API.To correctly target the pull request for adding a comment, you should use
gitea.event.pull_request.number
. This will ensure the API call is made to thecorrect issue index.
.gitea/workflows/pr_agent.yaml [20]
Suggestion importance[1-10]: 10
__
Why: The suggestion correctly identifies a critical bug where
gitea.ref_name
is used instead ofgitea.event.pull_request.number
to identify the pull request number for the Gitea API. This fix is essential for the workflow to correctly add comments to the intended pull request.BLOG-79 build: auto comment `/improve` commandto BLOG-79 AI review botgitea.ref_name
is the correct.