Skip to content

Commit e5b9b0b

Browse files
spastorinoanp
authored andcommitted
Add to-announce label to finalized FCPs
1 parent e52cadc commit e5b9b0b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/github/command.rs

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub enum Label {
1212
FCP,
1313
Postponed,
1414
Closed,
15+
ToAnnounce,
1516
DispositionMerge,
1617
DispositionClose,
1718
DispositionPostpone,
@@ -26,6 +27,7 @@ impl Label {
2627
FCP => "final-comment-period",
2728
Postponed => "postponed",
2829
Closed => "closed",
30+
ToAnnounce => "to-announce",
2931
DispositionMerge => "disposition-merge",
3032
DispositionClose => "disposition-close",
3133
DispositionPostpone => "disposition-postpone",

src/github/nag.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,15 @@ fn evaluate_ffcps() -> DashResult<()> {
493493
let label_res = issue.add_label(Label::FFCP);
494494
issue.remove_label(Label::FCP);
495495
let added_label = match label_res {
496-
Ok(_) => true,
496+
Ok(_) => {
497+
if let Err(why) = issue.add_label(Label::ToAnnounce) {
498+
warn!(
499+
"Unable to add to-announce label to {}#{}: {:?}",
500+
&issue.repository, issue.number, why
501+
);
502+
}
503+
true
504+
}
497505
Err(why) => {
498506
warn!(
499507
"Unable to add Finished-FCP label to {}#{}: {:?}",

0 commit comments

Comments
 (0)