Skip to content

Commit

Permalink
Merge pull request #1841 from Urgau/relnotes_milestone-at-creation
Browse files Browse the repository at this point in the history
Set milestone of the issue to newly created relnotes tracking issue
  • Loading branch information
Mark-Simulacrum committed Sep 11, 2024
2 parents 31ab10c + e8502c9 commit ba0f099
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 ba0f099

Please sign in to comment.