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

Add 'kugetsu post-comment' command to post issue comments without
writing to /tmp. This solves #45 where PM agent cannot write to /tmp
for comment posting.

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

The command reads GITEA_TOKEN from:
1. GITEA_TOKEN environment variable
2. ~/.kugetsu/env/pm-agent.env

Example:
  kugetsu post-comment https://git.fbrns.co/shoko/kugetsu 45 "Comment text"

Fixes #45
This commit is contained in:
shokollm
2026-04-03 14:26:32 +00:00
parent 91505345a2
commit dc2254cfba
2 changed files with 4 additions and 0 deletions

View File

@@ -1872,6 +1872,9 @@ main() {
env)
cmd_env "$@"
;;
post-comment)
cmd_post_comment "$@"
;;
doctor)
cmd_doctor "$@"
;;