File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,11 @@ impl ExistingGithubIssue {
242
242
pub fn has_label ( & self , name : & str ) -> bool {
243
243
self . labels . iter ( ) . any ( |label| label. name == name)
244
244
}
245
+
246
+ /// True if the issue has the label for a flagship goal.
247
+ pub fn has_flagship_label ( & self ) -> bool {
248
+ self . has_label ( "flagship" )
249
+ }
245
250
}
246
251
247
252
pub fn lock_issue ( repository : & Repository , number : u64 ) -> anyhow:: Result < ( ) > {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub(super) fn generate_json(
36
36
TrackingIssue {
37
37
number : issue. number ,
38
38
title,
39
- flagship : is_flagship ( & issue) ,
39
+ flagship : issue. has_flagship_label ( ) ,
40
40
progress,
41
41
assignees : issue. assignees . into_iter ( ) . collect ( ) ,
42
42
updates : updates ( issue. comments ) ,
@@ -224,10 +224,6 @@ fn try_checkboxes(issue: &ExistingGithubIssue) -> anyhow::Result<Progress> {
224
224
}
225
225
}
226
226
227
- fn is_flagship ( issue : & ExistingGithubIssue ) -> bool {
228
- issue. has_label ( "flagship" )
229
- }
230
-
231
227
fn updates ( comments : Vec < ExistingGithubComment > ) -> Vec < TrackingIssueUpdate > {
232
228
comments
233
229
. into_iter ( )
You can’t perform that action at this time.
0 commit comments