feat: add get_single_issue_comment_by_index operation #77

Open
fdrake wants to merge 3 commits from fdrake/gitea-mcp:comment-index into main
First-time contributor

I am contributing back a feature that I am using for my own Claude Code workflow with sub agents. I use Gitea Issues to track my features and have sub agents (product owner, code architect, engineer, reviewer) add comments throughout the issue. When I need a sub agent to look at another sub agent's comment, I can't have the LLM read all comments because it is too long overall. So I use this to give them a specific comment ID to look up.

Claude Code translated the Chinese so please let me know if a better translation is required in the README files.

I am contributing back a feature that I am using for my own Claude Code workflow with sub agents. I use Gitea Issues to track my features and have sub agents (product owner, code architect, engineer, reviewer) add comments throughout the issue. When I need a sub agent to look at another sub agent's comment, I can't have the LLM read all comments because it is too long overall. So I use this to give them a specific comment ID to look up. Claude Code translated the Chinese so please let me know if a better translation is required in the README files.
fdrake added 1 commit 2025-07-29 18:01:46 +00:00
feat: add get_single_issue_comment_by_index operation
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 11s
check-and-test / Run govulncheck (pull_request) Successful in 17s
096cc2ec72
lunny reviewed 2025-07-29 22:20:25 +00:00
@@ -342,0 +367,4 @@
if !ok {
return to.ErrorResult(fmt.Errorf("commentIndex is required"))
}
comment, _, err := gitea.Client().GetIssueComment(owner, repo, int64(commentIndex))
Owner

The last param is the comment id not index. There is no index for comment.

The last param is the comment id not index. There is no index for comment.
Author
First-time contributor

Updated variable to correctly identify as an ID, not an index.

Updated variable to correctly identify as an ID, not an index.
fdrake marked this conversation as resolved
fdrake added 1 commit 2025-07-30 05:17:23 +00:00
fix: rename commentIndex variable to commentID for clarity
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 10s
check-and-test / Run govulncheck (pull_request) Successful in 16s
47ced44b2e
fdrake force-pushed comment-index from 47ced44b2e to 50fb3bd626 2025-07-30 05:18:38 +00:00 Compare
Owner

@fdrake There are still several areas that need to be updated. i.e. get_single_issue_comment_by_index -> get_single_issue_comment_by_id.

@fdrake There are still several areas that need to be updated. i.e. `get_single_issue_comment_by_index` -> `get_single_issue_comment_by_id`.
lunny added the enhancement label 2025-07-30 21:24:21 +00:00
hiifong added 1 commit 2025-08-11 09:01:58 +00:00
Merge branch 'main' into comment-index
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 22s
check-and-test / Run govulncheck (pull_request) Successful in 44s
80a0adb28f
First-time contributor

@monkeycode-ai review it

@monkeycode-ai review it
First-time contributor

我是 MonkeyCode AI 编程助手,你可以在 GitHub 任意仓库的任意 Issue 或 PR 中 at @monkeycode-ai 来呼唤我。

MonkeyCode-AI 正在分析,请稍等片刻...

> 我是 [MonkeyCode AI 编程助手](https://monkeycode-ai.com/),你可以在 GitHub 任意仓库的任意 Issue 或 PR 中 at @monkeycode-ai 来呼唤我。 ⏳ MonkeyCode-AI 正在分析,请稍等片刻...
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 22s
Required
Details
check-and-test / Run govulncheck (pull_request) Successful in 44s
Required
Details
This pull request has changes conflicting with the target branch.
  • README.md
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u comment-index:fdrake-comment-index
git checkout fdrake-comment-index
Sign in to join this conversation.
No description provided.