Skip to content

Commit b7697e6

Browse files
committed
refactor: rename types module to github_api
1 parent c05a0b6 commit b7697e6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/commands/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use colored::Colorize as _;
1010
use crate::commands::pr_fetch::ignore_octothorpe;
1111
use crate::commit::Commit;
1212
use crate::git::{self, GIT_ROOT, git};
13-
use crate::types::{Branch, BranchAndRemote, Configuration, Remote};
13+
use crate::github_api::{Branch, BranchAndRemote, Configuration, Remote};
1414
use crate::utils::{display_link, with_uuid};
1515
use crate::{CONFIG_FILE, CONFIG_ROOT, commands, confirm_prompt};
1616

src/git.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use colored::Colorize as _;
1414
use reqwest::Client;
1515

1616
use crate::commit::Commit;
17-
use crate::types::{BranchAndRemote, GitHubResponse, Remote, Repo};
17+
use crate::github_api::{BranchAndRemote, GitHubResponse, Remote, Repo};
1818
use crate::utils::{display_link, make_request, normalize_commit_msg, with_uuid};
1919

2020
/// Spawn a git process and collect its output
@@ -319,7 +319,7 @@ pub async fn fetch_branch(
319319
})?;
320320

321321
let info = BranchAndRemote {
322-
branch: crate::types::Branch {
322+
branch: crate::github_api::Branch {
323323
local_branch_name: remote.branch.clone(),
324324
upstream_branch_name: remote.branch.clone(),
325325
},
@@ -359,7 +359,7 @@ pub async fn fetch_pull_request(
359359
})?;
360360

361361
let info = BranchAndRemote {
362-
branch: crate::types::Branch {
362+
branch: crate::github_api::Branch {
363363
upstream_branch_name: response.head.r#ref.clone(),
364364
local_branch_name: custom_branch_name.map_or_else(
365365
|| {
File renamed without changes.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ mod cli;
88
mod commands;
99
mod commit;
1010
mod git;
11+
mod github_api;
1112
pub mod interact;
12-
mod types;
1313
mod utils;
1414

1515
/// Root of patchy's configuration

0 commit comments

Comments
 (0)