File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
//! Generate JSON summarizing the tracking issues.
2
+ //!
3
+ //! This module contains types (e.g., [`TrackingIssues`]) that represent the
4
+ //! external API that is used by the website
5
+ //! and other tools to consume the tracking issue data. They are very similar
6
+ //! to the types in `gh` and so forth but because they represent
7
+ //! a versioned API, we copy them over here to insulate them from incidental changes.
2
8
3
9
use std:: path:: PathBuf ;
4
10
5
11
use serde:: Serialize ;
6
12
7
13
use crate :: {
8
- gh:: issues:: { list_issue_titles_in_milestone, ExistingGithubComment , ExistingGithubIssue } ,
14
+ gh:: issues:: {
15
+ list_issue_titles_in_milestone, ExistingGithubComment , ExistingGithubIssue ,
16
+ ExistingIssueState ,
17
+ } ,
9
18
re,
10
19
} ;
11
20
@@ -29,6 +38,7 @@ pub(super) fn generate_json(
29
38
checked_checkboxes,
30
39
assignees : issue. assignees . into_iter ( ) . collect ( ) ,
31
40
updates : updates ( issue. comments ) ,
41
+ state : issue. state ,
32
42
}
33
43
} )
34
44
. collect ( ) ,
@@ -78,6 +88,9 @@ struct TrackingIssue {
78
88
79
89
/// Posts that we consider to be status updates, in chronological order
80
90
updates : Vec < TrackingIssueUpdate > ,
91
+
92
+ /// Issue state
93
+ state : ExistingIssueState ,
81
94
}
82
95
83
96
#[ derive( Serialize ) ]
You can’t perform that action at this time.
0 commit comments