File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11### 1.3.0
22- Add issue lock/unlock functionality.
3+ - Add ` creator ` parameter to issue search filter.
34
45### 1.2.2
56- Warn instead of error when issue number file write fails.
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ pub(super) struct Source {
3737 state : Option < String > ,
3838 milestone : Option < u64 > ,
3939 assignee : Option < String > ,
40+ creator : Option < String > ,
4041 labels : Option < Vec < String > > ,
4142 // for skipping check during e.g. put+create
4243 skip_check : Option < bool > ,
@@ -71,6 +72,9 @@ impl Source {
7172 None => None ,
7273 }
7374 }
75+ pub ( super ) fn creator ( & self ) -> Option < & str > {
76+ self . creator . as_deref ( )
77+ }
7478 pub ( super ) fn labels ( & self ) -> Option < Vec < String > > {
7579 self . labels . clone ( )
7680 }
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ fn test_source_owner() {
3434 number: None ,
3535 milestone: None ,
3636 assignee: None ,
37+ creator: None ,
3738 labels: None ,
3839 skip_check: None ,
3940 trigger: None ,
@@ -51,6 +52,9 @@ fn test_source_deserialize() {
5152 "repo": "ol-infrastructure",
5253 "number": 1,
5354 "state": "open",
55+ "milestone": 5,
56+ "assignee": "the foo",
57+ "creator": "the bar",
5458 "skip_check": false,
5559 "trigger": "open"
5660}"# ;
@@ -64,8 +68,9 @@ fn test_source_deserialize() {
6468 repo: String :: from( "ol-infrastructure" ) ,
6569 number: Some ( 1 ) ,
6670 state: Some ( String :: from( "open" ) ) ,
67- milestone: None ,
68- assignee: None ,
71+ milestone: Some ( 5 ) ,
72+ assignee: Some ( String :: from( "the foo" ) ) ,
73+ creator: Some ( String :: from( "the bar" ) ) ,
6974 labels: None ,
7075 skip_check: Some ( false ) ,
7176 trigger: Some ( octocrab:: models:: IssueState :: Open )
You can’t perform that action at this time.
0 commit comments