Skip to content

Commit

Permalink
Rename repo_id to repo_node_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Mar 18, 2024
1 parent 78534b3 commit ac6d697
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/github/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ impl SyncGitHub {
Ok(RepoDiff::Update(UpdateRepoDiff {
org: expected_repo.org.clone(),
name: actual_repo.name,
repo_id: actual_repo.id,
repo_node_id: actual_repo.id,
settings_diff: (old_settings, new_settings),
permission_diffs,
branch_protection_diffs,
Expand Down Expand Up @@ -745,7 +745,7 @@ impl std::fmt::Display for CreateRepoDiff {
struct UpdateRepoDiff {
org: String,
name: String,
repo_id: String,
repo_node_id: String,
// old, new
settings_diff: (RepoSettings, RepoSettings),
permission_diffs: Vec<RepoPermissionAssignmentDiff>,
Expand Down Expand Up @@ -786,7 +786,7 @@ impl UpdateRepoDiff {
}

for branch_protection in &self.branch_protection_diffs {
branch_protection.apply(sync, &self.org, &self.name, &self.repo_id)?;
branch_protection.apply(sync, &self.org, &self.name, &self.repo_node_id)?;
}
Ok(())
}
Expand Down

0 comments on commit ac6d697

Please sign in to comment.