Skip to content

Commit 49d0b56

Browse files
committed
chore: api for accessing keys
1 parent 26aca3b commit 49d0b56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/relation/graph_query.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ impl RelationGraph {
2222
.collect();
2323
}
2424

25+
pub fn files(&self) -> Vec<String> {
26+
return self.get_keys(&self.file_mapping);
27+
}
28+
29+
pub fn commits(&self) -> Vec<String> {
30+
return self.get_keys(&self.commit_mapping);
31+
}
32+
2533
pub fn issues(&self) -> Vec<String> {
2634
return self.get_keys(&self.issue_mapping);
2735
}

0 commit comments

Comments
 (0)