Skip to content

Commit

Permalink
Update changelog generation for merge queues
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Oct 24, 2024
1 parent 58e9871 commit 333952f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xtask/src/release/changelog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ fn unescape(s: &str) -> String {
}

fn parse_pr_number(s: &str) -> Option<u32> {
const BORS_PREFIX: &str = "Merge #";
const GITHUB_PREFIX: &str = "Merge pull request #";
const HOMU_PREFIX: &str = "Auto merge of #";
if let Some(s) = s.strip_prefix(BORS_PREFIX) {
if let Some(s) = s.strip_prefix(GITHUB_PREFIX) {
let s = if let Some(space) = s.find(' ') { &s[..space] } else { s };
s.parse().ok()
} else if let Some(s) = s.strip_prefix(HOMU_PREFIX) {
if let Some(space) = s.find(' ') {
Expand Down

0 comments on commit 333952f

Please sign in to comment.