pub fn commit_and_push_pr_fixes(
pr_number: u32,
commit_enabled: bool,
push_enabled: bool,
) -> Result<(Option<CommitResult>, Option<PushResult>)>Expand description
Commit and optionally push PR review fixes
This function:
- Checks if there are uncommitted changes
- Stages all changes
- Creates a commit with the given message
- Optionally pushes to remote if
push_enabledis true
§Arguments
pr_number- The PR number for the commit messagecommit_enabled- Whether to create a commit (from config)push_enabled- Whether to push after commit (from config)
§Returns
Tuple of (commit_result, push_result) where push_result is None if push was skipped