Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit e8cd433

Browse files
KobzolMark-Simulacrum
authored andcommitted
Rename id to node_id
1 parent 8556214 commit e8cd433

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/github/api/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ pub(crate) struct RepoAppInstallation {
262262

263263
#[derive(serde::Deserialize, Debug)]
264264
pub(crate) struct Repo {
265-
#[serde(rename = "node_id")]
266-
pub(crate) id: String,
265+
pub(crate) node_id: String,
267266
#[serde(rename = "id")]
268267
pub(crate) repo_id: u64,
269268
pub(crate) name: String,

src/github/api/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ impl GitHubWrite {
230230
debug!("Creating the repo {org}/{name} with {req:?}");
231231
if self.dry_run {
232232
Ok(Repo {
233-
id: String::from("ID"),
233+
node_id: String::from("ID"),
234234
repo_id: 0,
235235
name: name.to_string(),
236236
org: org.to_string(),

src/github/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ impl SyncGitHub {
337337
Ok(RepoDiff::Update(UpdateRepoDiff {
338338
org: expected_repo.org.clone(),
339339
name: actual_repo.name,
340-
repo_node_id: actual_repo.id,
340+
repo_node_id: actual_repo.node_id,
341341
settings_diff: (old_settings, new_settings),
342342
permission_diffs,
343343
branch_protection_diffs,
@@ -699,7 +699,7 @@ impl CreateRepoDiff {
699699
pattern: branch.clone(),
700700
operation: BranchProtectionDiffOperation::Create(protection.clone()),
701701
}
702-
.apply(sync, &self.org, &self.name, &repo.id)?;
702+
.apply(sync, &self.org, &self.name, &repo.node_id)?;
703703
}
704704

705705
for installation in &self.app_installations {

0 commit comments

Comments
 (0)