GitHubReviewPublisher
public class GitHubReviewPublisher
源码Source
io/agentscope/harness/coding/reviewer/GitHubReviewPublisher.java:37–178GitHub Review Publisher,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.coding.reviewer 包。核心成员包括 publish、GitHubReviewPublisher。
Publishes reviewer findings to a GitHub PR as inline comments.
Creates a single GitHub pull request review with inline comment for each finding. Resolves
existing GitHub review threads for findings that transition to resolved.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public GitHubReviewPublisher() | 初始化 `GitHubReviewPublisher` 实例。 Creates a new instance. |
public GitHubReviewPublisher(CodingAgentMetrics metrics) | 初始化 `GitHubReviewPublisher` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void publish(String threadId, String prUrl, String token, ReviewerFindingsService findingsService) throws IOException, InterruptedException | 执行发布相关操作。 Publishes accumulated findings for `threadId` as a single GitHub PR review. |
构造器详情Constructor Detail
GitHubReviewPublisher
public GitHubReviewPublisher()
初始化 GitHubReviewPublisher 实例。
Creates a new instance.
源码Source
io/agentscope/harness/coding/reviewer/GitHubReviewPublisher.java:48–50GitHubReviewPublisher
public GitHubReviewPublisher(CodingAgentMetrics metrics)
初始化 GitHubReviewPublisher 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metrics | CodingAgentMetrics | 指标(类型 `CodingAgentMetrics`)。The metrics. |
源码Source
io/agentscope/harness/coding/reviewer/GitHubReviewPublisher.java:52–56方法详情Method Detail
publish
public void publish(String threadId, String prUrl, String token, ReviewerFindingsService findingsService) throws IOException, InterruptedException
执行发布相关操作。
Publishes accumulated findings for threadId as a single GitHub PR review.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
threadId | String | 会话线程标识(类型 `String`)。session thread ID |
prUrl | String | pr URL(类型 `String`)。full PR URL |
token | String | 令牌(类型 `String`)。GitHub token |
findingsService | ReviewerFindingsService | findings 服务(类型 `ReviewerFindingsService`)。finding source |
IOException可能抛出 `IOException`。Thrown when the operation cannot be completed.InterruptedException可能抛出 `InterruptedException`。Thrown when the operation cannot be completed.
源码Source
io/agentscope/harness/coding/reviewer/GitHubReviewPublisher.java:66–151