Skip to main content

ralph/git/pr/
mod.rs

1//! GitHub PR helpers using the `gh` CLI.
2//!
3//! Responsibilities:
4//! - Expose the crate-facing PR operations and status types.
5//! - Keep the public surface stable while delegating execution/parsing to focused submodules.
6//! - Colocate PR-specific tests near the implementation.
7//!
8//! Not handled here:
9//! - Task selection or worker execution (see `commands::run::parallel`).
10//! - Direct-push parallel integration logic (see `commands::run::parallel::integration`).
11//!
12//! Invariants/assumptions:
13//! - `gh` is installed and authenticated for command execution paths.
14//! - Repo root points to a GitHub-backed repository.
15
16#![allow(dead_code)]
17
18mod gh;
19mod ops;
20mod parse;
21mod types;
22
23pub(crate) use gh::check_gh_available;
24pub(crate) use ops::{create_pr, merge_pr, pr_lifecycle_status, pr_merge_status};
25pub(crate) use types::{MergeState, PrInfo, PrLifecycle};
26
27#[cfg(test)]
28mod tests;