You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
format!("All concerns on the [associated GitHub issue]({}) have been resolved, this proposal is no longer blocked, and will be approved in 10 days if no (new) objections are raised.", event.issue.html_url)
206
215
}else{
207
216
format!("All concerns on the [associated GitHub issue]({}) have been resolved, this proposal is no longer blocked.", event.issue.html_url)
if !issue.labels.iter().any(|l| l.name == config.accept_label){
555
+
// Only post the comment if the accept_label isn't set yet, we may be in a retry
556
+
issue
557
+
.post_comment(
558
+
&ctx.github,
559
+
"The final comment period is now complete, this major change is now accepted.\n\nAs the automated representative, I would like to thank the author for their work and everyone else who contributed to this major change proposal."
560
+
)
561
+
.await
562
+
.context("unable to post the acceptance comment")?;
563
+
}
564
+
issue
565
+
.add_labels(
566
+
&ctx.github,
567
+
vec![Label{
568
+
name: config.accept_label.clone(),
569
+
}],
570
+
)
571
+
.await
572
+
.context("unable to add the accept label")?;
573
+
issue
574
+
.remove_label(&ctx.github,&config.second_label)
575
+
.await
576
+
.context("unable to remove the second label")?;
577
+
issue
578
+
.close(&ctx.github)
579
+
.await
580
+
.context("unable to close the issue")?;
581
+
582
+
Ok(())
583
+
}
584
+
585
+
#[test]
586
+
fnmajor_change_queue_serialize(){
587
+
let original = MajorChangeSeconded{
588
+
repo:"rust-lang/rust".to_string(),
589
+
issue:1245,
590
+
seconded_at:Utc::now(),
591
+
accept_at:Utc::now(),
592
+
};
593
+
594
+
let value = serde_json::to_value(original.clone()).unwrap();
595
+
596
+
let deserialized = serde_json::from_value(value).unwrap();
0 commit comments