Skip to content

Commit

Permalink
Add title to changelog (#479)
Browse files Browse the repository at this point in the history
* Change header to have title

* Borrow header text

* Change `title` to `name`
  • Loading branch information
Coolsonickirby authored Dec 7, 2022
1 parent 20214e0 commit a45d317
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/menus/changelog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,16 @@ impl Contributor {
fn get_contributor_image(&self) -> Vec<u8> {
match &self.avatar_url {
Some(url) => {
println!("{}", url);
match minreq::get(url)
.with_header("Accept", "application/vnd.github.v3+json")
.with_header("User-Agent", "ARCropolis")
.send() {
Ok(resp) => {
println!("Success!");
resp.as_bytes()
.to_vec()
},
Err(err) => {
println!("{:?}", err);
println!("Failed getting contributor avatar! Reason: {:?}", err);
vec![]
},
}
Expand Down
3 changes: 2 additions & 1 deletion src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ where
let day = &split[2][..2];
format!("{}/{}/{}", month, day, year)
};
if !f(release.get_release_tag().trim_start_matches('v'), date, &release.data["body"].to_string()) {
let header_text = format!("{} ({})", release.get_release_tag().trim_start_matches('v'), &release.data["name"].to_string());
if !f(&header_text, date, &release.data["body"].to_string()) {
return
}
if let Some(release) = release.get_asset_by_name("release.zip") {
Expand Down

0 comments on commit a45d317

Please sign in to comment.