Skip to content

Commit

Permalink
Set milestone of the issue to newly created relnotes tracking issue
Browse files Browse the repository at this point in the history
This is useful when the label(s) are added **after** the PR or issue has
received the milestone in which case we may never set the milestone in
the relnotes tracking issue.
  • Loading branch information
Urgau committed Sep 11, 2024
1 parent c35ff9f commit e8502c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/handlers/relnotes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ cc {} -- origin issue/PR authors and assignees for starting to draft text
vec!["relnotes".to_owned(), "relnotes-tracking-issue".to_owned()],
)
.await?;
if let Some(milestone) = &e.issue.milestone {
ctx.github
.set_milestone(&e.issue.repository().to_string(), &milestone, resp.number)
.await?;
}
state.data.relnotes_issue = Some(resp.number);
state.save().await?;
}
Expand Down

0 comments on commit e8502c9

Please sign in to comment.