fix(kugetsu): add post-comment helper for PM agent #124

Closed
shoko wants to merge 1 commits from fix/issue-45-post-comment-helper into main
Owner

Summary

Fix for #45 - PM agent cannot write to /tmp for comment posting

Problem

PM agent tried to post comments but was blocked:

! permission requested: external_directory (/tmp/*); auto-rejecting

Solution

Add kugetsu post-comment command that posts comments directly without writing to /tmp:

kugetsu post-comment <repo-url> <issue-number> <body>

The command:

  • Reads GITEA_TOKEN from pm-agent.env or environment
  • Constructs API URL from repo URL
  • Posts comment directly using curl with JSON body

Usage

# Set token (one time)
kugetsu env set GITEA_TOKEN <token> pm-agent

# Post comment
kugetsu post-comment https://git.fbrns.co/shoko/kugetsu 45 "Test comment"

Fixes #45

## Summary Fix for #45 - PM agent cannot write to /tmp for comment posting ## Problem PM agent tried to post comments but was blocked: ``` ! permission requested: external_directory (/tmp/*); auto-rejecting ``` ## Solution Add `kugetsu post-comment` command that posts comments directly without writing to /tmp: ```bash kugetsu post-comment <repo-url> <issue-number> <body> ``` The command: - Reads GITEA_TOKEN from pm-agent.env or environment - Constructs API URL from repo URL - Posts comment directly using curl with JSON body ## Usage ```bash # Set token (one time) kugetsu env set GITEA_TOKEN <token> pm-agent # Post comment kugetsu post-comment https://git.fbrns.co/shoko/kugetsu 45 "Test comment" ``` Fixes #45
shoko added 1 commit 2026-04-03 11:27:48 +02:00
Add kugetsu post-comment command to post issue comments without
writing to /tmp. This solves the PM agent /tmp permission issue.

Usage:
  kugetsu post-comment <repo-url> <issue-number> <body>

The command:
- Reads GITEA_TOKEN from pm-agent.env or environment
- Constructs API URL from repo URL
- Posts comment directly without temp files

Fixes #45
shoko closed this pull request 2026-04-05 07:12:24 +02:00

Pull request closed

Sign in to join this conversation.