Add WUMING_DRY_RUN mode #41
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When WUMING_DRY_RUN=true, skip all Forgejo HTTP POST calls and log the would-be comment bodies to stdout instead. Useful for tuning prompts and testing new agents without polluting PR comment threads. All read operations (diff fetch, existing comments) still run.
Gate the two Forgejo write call-sites in main.py: post_comment() inside _fetch_file_diffs() (too-large path) and post_review() at the end of _main(). When dry_run=True, log the body via logger.info with extra dry_run=True and skip the HTTP call. Config parsed via shared _parse_bool_flag() helper in config.py.