import { getGitProvider } from '../../git/index.js';
export function commentPrEffect(options, payload) {
    const result = getGitProvider().commentOnPr(payload.pr, payload.body, options.projectCwd);
    return {
        success: result.success,
        failed: result.success !== true,
        ...(result.error ? { error: result.error } : {}),
    };
}
export function mergePrEffect(options, payload) {
    const result = getGitProvider().mergePr(payload.pr, options.projectCwd);
    return {
        success: result.success,
        failed: result.success !== true,
        ...(result.error ? { error: result.error } : {}),
    };
}
export function closePrEffect(options, payload) {
    const result = getGitProvider().closePr(payload.pr, options.projectCwd);
    return {
        success: result.success,
        failed: result.success !== true,
        ...(result.error ? { error: result.error } : {}),
    };
}
//# sourceMappingURL=system-pr-effects.js.map