1
1
mirror of https://github.com/casey/just.git synced 2024-11-22 10:26:26 +03:00

Credit myself in changelog (#2162)

This commit is contained in:
Casey Rodarmor 2024-06-14 16:42:14 -07:00 committed by GitHub
parent 1547af08b5
commit bf6ec6bf16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 470 additions and 474 deletions

File diff suppressed because it is too large Load Diff

View File

@ -30,13 +30,9 @@ fn main() {
.replace_all(
&fs::read_to_string("CHANGELOG.md").unwrap(),
|captures: &Captures| {
let pr = captures[1].parse().unwrap();
match author(pr).as_str() {
"casey" => format!("([#{pr}](https://github.com/casey/just/pull/{pr}))"),
contributor => {
format!("([#{pr}](https://github.com/casey/just/pull/{pr}) by [{contributor}](https://github.com/{contributor}))")
}
}
let pr = captures[1].parse().unwrap();
let contributor = author(pr);
format!("([#{pr}](https://github.com/casey/just/pull/{pr}) by [{contributor}](https://github.com/{contributor}))")
},
),
)