mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
Merge pull request #18405 from lnicola/fix-changelog
internal: Update changelog generation for merge queues
This commit is contained in:
commit
6a67a4d3cd
1 changed files with 3 additions and 2 deletions
|
@ -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(' ') {
|
||||
|
|
Loading…
Reference in a new issue