{"modulePath":"github.com/bborbe/agent-task-controller","version":"v0.38.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package prcomment\n\n## Types\n\n```go\ntype PRCommenter interface {\n\t// PostComment posts body as a COMMENT review on the PR identified by\n\t// frontmatter (pr_url, or repository + pull_request_number). Returns an\n\t// error when the PR cannot be resolved, the token is missing, or the\n\t// GitHub API call fails. The error carries a frozen substring so callers\n\t// log the right WARNING.\n\tPostComment(ctx context.Context, frontmatter lib.TaskFrontmatter, body string) error\n}\n```\nPRCommenter posts a plain COMMENT review on a GitHub pull request. It never approves or requests changes — the controller never gates the PR merge. PostComment is best-effort: it returns an error only for genuine send failures; callers swallow the error and log at WARNING (the frontmatter escalation must not be blocked by a failed comment).\n\n```go\nfunc NewPRCommenter(httpClient *http.Client, baseURL, token string) PRCommenter\n```\nNewPRCommenter constructs a PRCommenter. token may be empty — in that case PostComment returns an error with the missing-token substring and posts nothing.\n\n","path":"github.com/bborbe/agent-task-controller/pkg/prcomment","name":"prcomment","synopsis":"","isRedistributable":true}
