File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ impl Bound {
37
37
pub fn left_match ( & self , commit : & Commit ) -> bool {
38
38
match self {
39
39
Bound :: Commit ( sha) => commit. sha == * * sha,
40
- Bound :: Date ( date) => commit. date . 0 . naive_utc ( ) . date ( ) >= * date,
40
+ Bound :: Date ( date) => commit. is_master ( ) && commit . date . 0 . naive_utc ( ) . date ( ) >= * date,
41
41
Bound :: None => {
42
42
let last_month = chrono:: Utc :: now ( ) . date ( ) . naive_utc ( ) - chrono:: Duration :: days ( 30 ) ;
43
- last_month <= commit. date . 0 . naive_utc ( ) . date ( )
43
+ commit . is_master ( ) && last_month <= commit. date . 0 . naive_utc ( ) . date ( )
44
44
}
45
45
}
46
46
}
@@ -49,8 +49,8 @@ impl Bound {
49
49
pub fn right_match ( & self , commit : & Commit ) -> bool {
50
50
match self {
51
51
Bound :: Commit ( sha) => commit. sha == * * sha,
52
- Bound :: Date ( date) => commit. date . 0 . date ( ) . naive_utc ( ) <= * date,
53
- Bound :: None => true ,
52
+ Bound :: Date ( date) => commit. is_master ( ) && commit . date . 0 . date ( ) . naive_utc ( ) <= * date,
53
+ Bound :: None => commit . is_master ( ) ,
54
54
}
55
55
}
56
56
}
You can’t perform that action at this time.
0 commit comments