Skip to content

Commit

Permalink
chore: api for accessing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfzc committed Apr 10, 2024
1 parent 26aca3b commit 49d0b56
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/relation/graph_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ impl RelationGraph {
.collect();
}

pub fn files(&self) -> Vec<String> {
return self.get_keys(&self.file_mapping);
}

pub fn commits(&self) -> Vec<String> {
return self.get_keys(&self.commit_mapping);
}

pub fn issues(&self) -> Vec<String> {
return self.get_keys(&self.issue_mapping);
}
Expand Down

0 comments on commit 49d0b56

Please sign in to comment.