Commit Graph

39 Commits

Author SHA1 Message Date
pullfrog[bot] 71feba0a76 fix: prevent log.writeSummary from overwriting reportProgress content (#87)
* fix: prevent log.writeSummary from overwriting reportProgress content

The run summary was showing logs instead of the final reportProgress content
because log.writeSummary() was called after reportProgress. Now
log.writeSummary() checks if the summary was already overwritten by
reportProgress and skips if so.

Fixes #86

* refactor: replace dynamic import with static import in cli.ts

Replace unnecessary dynamic import of wasSummaryOverwritten with
static import. No circular dependency exists since comment.ts doesn't
import from cli.ts.

* Fix run summary writing

---------

Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com>
Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
2026-01-15 00:55:42 +00:00
pullfrog[bot] 3b880eb478 Implement GitHub suggestion format instructions (#79)
* implement github suggestion format instructions

add instructions for agents to use github's suggestion format (```suggestion blocks) when providing code suggestions in comments. this enables one-click apply for suggested changes.

updated:
- action/mcp/review.ts: added suggestion format guidance to create_pull_request_review tool description and comment body parameter
- action/mcp/comment.ts: added suggestion format guidance to all comment tools with clarification that suggestions only work on pr line-level review comments
- action/modes.ts: added detailed example in review mode and reminder in address reviews mode

fixes #70

* Address PR review feedback

- Remove suggestion format guidance from report_progress (not applicable)
- De-duplicate description across Comment, EditComment, ReplyToReviewComment
- Drop outer fence in suggestion format example
- Clarify that suggestions only work for self-contained changes
- Remove useless example comment from review tool description

---------

Co-authored-by: pullfrog <team@pullfrog.com>
2026-01-14 20:41:43 +00:00
Colin McDonnell 45f837cedb Fixes 2026-01-12 14:12:16 -08:00
Robin Tail 7fe0233c24 fix(DNRY): Moving isGitHubActions to the module context (expensive operation), and the condition to updateSummary(). 2026-01-12 10:34:02 +01:00
Robin Tail e10f756560 fix(DNRY): Extracting the summary writing into updateSummary() helper. 2026-01-12 10:30:26 +01:00
Robin Tail 48108b137a fix(DNRY): Extracting isGitHubActions flag. 2026-01-12 10:18:08 +01:00
pullfrog 074a860a95 Update job summary with progress comment content
Modified reportProgress() to write the same content to core.summary
with overwrite: true. This replaces the verbose log accumulation with
the concise progress updates that stakeholders see in comments.

The job summary now stays in sync with the progress comment,
providing a clean overview of the agent's work rather than
accumulated logs throughout execution.

Fixes #17
2026-01-12 09:07:13 +00:00
Mateusz Burzyński a483711fee Auto-retry ratelimited octokit requests 2026-01-07 17:17:20 +01:00
Colin McDonnell 0504fc42ff Do not print 'This run croaked' if the agent only replies in a PR review comment 2025-12-30 20:21:23 -08:00
Colin McDonnell ad1f51d704 Implement Plan button 2025-12-30 20:14:49 -08:00
Colin McDonnell c200c7aff9 Tweak message 2025-12-27 16:28:47 -08:00
Colin McDonnell 04c695038f 151 2025-12-22 13:57:51 -08:00
David Blass 90ed2648be refactor main 2025-12-17 16:28:17 -05:00
Colin McDonnell 4db8e28bf7 Refactor to toolState 2025-12-16 20:41:10 -08:00
Colin McDonnell db68424ffc fix: move origin URL auth setup before git fetch in setupGit 2025-12-16 16:51:53 -08:00
Colin McDonnell 26336d0ac2 Tool factories 2025-12-15 23:04:20 -08:00
Colin McDonnell 0fced1dfa6 Clean up init 2025-12-15 22:21:47 -08:00
Colin McDonnell a19ae49224 Determinstically set up PR branch 2025-12-15 21:12:55 -08:00
David Blass bb55216a6b iterate on pr fix 2025-12-11 18:02:44 -05:00
Shawn Morreau 2c2f7cfe30 remove top level import 2025-12-11 15:06:32 -05:00
Shawn Morreau fb7d9e0d34 move croaked logic, ensure API key error populates comment 2025-12-11 14:55:07 -05:00
Colin McDonnell 59f85a9003 Switch to pullfrog.com 2025-12-04 16:40:10 -08:00
Shawn Morreau e09e612273 Update working comment on error or non responsive agent 2025-12-04 15:33:34 -05:00
Shawn Morreau 7f81415259 update working comment on error 2025-12-04 15:05:53 -05:00
Colin McDonnell 046de13bb3 Fix issue w/ new comments being created in Prompt mode 2025-12-03 15:21:45 -08:00
Colin McDonnell df72988aab Silently return if no issue_number 2025-12-02 21:20:14 -08:00
ssalbdivad 32f850d6ec migrate to report_progress 2025-12-02 15:23:56 -05:00
Colin McDonnell 91f8b55167 add Address Reviews mode 2025-11-26 23:25:36 -08:00
Colin McDonnell c8cbda6972 simplify initialization 2025-11-26 10:23:27 -08:00
Colin McDonnell 595b246235 update instructions fixtures and comment handling 2025-11-20 18:58:20 -08:00
Colin McDonnell 8298cdd07c add urls to agent manifest 2025-11-20 17:06:52 -08:00
Colin McDonnell 935fe26013 Tweak footer 2025-11-20 17:05:42 -08:00
Colin McDonnell 6c6b7b0b2d Add footer links 2025-11-20 16:05:07 -08:00
Colin McDonnell b05d1bfc53 Add parrot 2025-11-19 16:52:11 -08:00
David Blass d4a4dd59bb use working comment 2025-11-14 14:01:44 -05:00
David Blass 3ddd6db7ca add mode, comment edit prompting 2025-11-05 11:08:44 -05:00
David Blass c6c1210fa0 refactor tool implementation 2025-10-23 15:21:08 -04:00
David Blass c668578c6f refactor mcp and add instructions prefix 2025-10-17 22:26:24 -04:00
ssalbdivad 757d336475 switch to fastmcp 2025-10-15 17:24:29 -04:00