Skip to content

Commit 9b69c8a

Browse files
committed
Add more comments
1 parent 26c8200 commit 9b69c8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/gh-workflow/src/event.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,11 +558,13 @@ impl PullRequest {
558558
self
559559
}
560560

561+
/// Adds a file path to filter on
561562
pub fn add_path<S: Into<String>>(mut self, path: S) -> Self {
562563
self.paths.push(path.into());
563564
self
564565
}
565566

567+
/// Adds a file path to not trigger on
566568
pub fn add_ignored_path<S: Into<String>>(mut self, path: S) -> Self {
567569
self.paths_ignore.push(path.into());
568570
self
@@ -662,11 +664,13 @@ impl PullRequestTarget {
662664
self
663665
}
664666

667+
/// Adds a file path to filter on
665668
pub fn add_path<S: Into<String>>(mut self, path: S) -> Self {
666669
self.paths.push(path.into());
667670
self
668671
}
669672

673+
/// Adds a file path to not trigger on
670674
pub fn add_ignored_path<S: Into<String>>(mut self, path: S) -> Self {
671675
self.paths_ignore.push(path.into());
672676
self

0 commit comments

Comments
 (0)