File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,18 @@ cc {} -- origin issue/PR authors and assignees for starting to draft text
116
116
& e. issue . repository ( ) ,
117
117
& title,
118
118
& body,
119
- vec ! [ "relnotes" . to_owned( ) , "relnotes-tracking-issue" . to_owned( ) ] ,
119
+ [ "relnotes" , "relnotes-tracking-issue" ]
120
+ . into_iter ( )
121
+ . chain ( e. issue . labels . iter ( ) . map ( |l| & * l. name ) . filter ( |l| {
122
+ l. starts_with ( "A-" ) // A-* (area)
123
+ || l. starts_with ( "F-" ) // F-* (feature)
124
+ || l. starts_with ( "L-" ) // L-* (lint)
125
+ || l. starts_with ( "O-" ) // O-* (OS)
126
+ || l. starts_with ( "T-" ) // T-* (team)
127
+ || l. starts_with ( "WG-" ) // WG-* (working group)
128
+ } ) )
129
+ . map ( ToOwned :: to_owned)
130
+ . collect :: < Vec < _ > > ( ) ,
120
131
)
121
132
. await ?;
122
133
if let Some ( milestone) = & e. issue . milestone {
You can’t perform that action at this time.
0 commit comments