File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ async fn milestone_cargo(
124
124
125
125
// Get all of the git commits in the cargo repo.
126
126
let cargo_repo = gh. repository ( "rust-lang/cargo" ) . await ?;
127
+ log:: info!( "loading cargo changes {cargo_start_hash}...{cargo_end_hash}" ) ;
127
128
let commits = cargo_repo
128
129
. commits_in_range ( gh, cargo_start_hash, cargo_end_hash)
129
130
. await ?;
@@ -141,6 +142,11 @@ async fn milestone_cargo(
141
142
let merge_re = Regex :: new ( "(?:Auto merge of|Merge pull request) #([0-9]+)" ) . unwrap ( ) ;
142
143
143
144
let pr_nums = commits. iter ( ) . filter_map ( |commit| {
145
+ log:: info!(
146
+ "getting PR number for cargo commit {} (len={})" ,
147
+ commit. sha,
148
+ commit. commit. message. len( )
149
+ ) ;
144
150
merge_re. captures ( & commit. commit . message ) . map ( |cap| {
145
151
cap. get ( 1 )
146
152
. unwrap ( )
@@ -153,6 +159,7 @@ async fn milestone_cargo(
153
159
. get_or_create_milestone ( gh, release_version, "closed" )
154
160
. await ?;
155
161
for pr_num in pr_nums {
162
+ log:: info!( "setting cargo milestone {milestone:?} for {pr_num}" ) ;
156
163
cargo_repo. set_milestone ( gh, & milestone, pr_num) . await ?;
157
164
}
158
165
You can’t perform that action at this time.
0 commit comments