• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 18348838566

08 Oct 2025 02:54PM UTC coverage: 45.694% (+0.05%) from 45.646%
18348838566

Pull #272

github

web-flow
Merge 22c0d74cf into c223cab16
Pull Request #272: chore(tools): Standardize `git_commit` tool output to XML format

0 of 6 new or added lines in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

6605 of 14455 relevant lines covered (45.69%)

15.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/.config/jp/tools/src/git/commit.rs
1
use std::{path::PathBuf, process::Command};
2

3
use serde::Serialize;
4

5
use crate::{to_xml, Error};
6

7
#[derive(Serialize)]
8
struct CommandResult {
9
    status: i32,
10
    stdout: String,
11
    stderr: String,
12
}
13

14
pub(crate) async fn git_commit(
×
15
    root: PathBuf,
×
16
    message: String,
×
17
) -> std::result::Result<String, Error> {
×
18
    let output = Command::new("git")
×
NEW
19
        .args(["commit", "--signoff", "--message", &message])
×
20
        .current_dir(root)
×
21
        .output()?;
×
22

NEW
23
    to_xml(CommandResult {
×
NEW
24
        status: output.status.code().unwrap_or(-1),
×
NEW
25
        stdout: String::from_utf8(output.stdout).unwrap_or_default(),
×
NEW
26
        stderr: String::from_utf8(output.stderr).unwrap_or_default(),
×
NEW
27
    })
×
UNCOV
28
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc