Skip to main content

get_pr_state

Function get_pr_state 

Source
pub fn get_pr_state(feature_branch: &str, repo: Option<&Path>) -> Option<String>
Expand description

Query GitHub PR state for a branch using gh CLI.

Returns the PR state string (e.g., “OPEN”, “MERGED”, “CLOSED”) or None if gh is unavailable, no PR exists, or the query fails.