Skip to content

Commit

Permalink
remove redundant entries and add additional contributors in format_co…
Browse files Browse the repository at this point in the history
…ntributors_to_md and example.md

this commit removes redundant entries from the contributors list in `format_contributors_to_md` and updates the list of contributors in `example.md` to include authors of new pull requests.
  • Loading branch information
falcucci committed Aug 8, 2023
1 parent 59aee18 commit 019d75a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/github_graphql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub async fn format_contributors_to_md(pull_requests: &[PullRequest]) -> String
fn unify_contributors(contributors: String) -> String {
let mut contributors_set = HashSet::new();
contributors.split('\n').for_each(|contributor| {
if !contributors_set.contains(contributor) {
if !contributors_set.contains(contributor) && !contributor.is_empty() {
contributors_set.insert(contributor);
}
});
Expand Down
31 changes: 14 additions & 17 deletions templates/example.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
# rust-lang/rust - 1.73.0 (2023-08-07)

- [Issue numbers are enforced on active features; remove FIXME](https://github.com/rust-lang/rust/pull/114556)
- [Remove FIXME about NLL diagnostic that is already improved](https://github.com/rust-lang/rust/pull/114558)
- [update Miri](https://github.com/rust-lang/rust/pull/114560)
- [stabilize abi_thiscall](https://github.com/rust-lang/rust/pull/114562)
- [Rollup of 6 pull requests](https://github.com/rust-lang/rust/pull/114565)
- [Rollup of 8 pull requests](https://github.com/rust-lang/rust/pull/114569)
- [[miri][typo] Fix a typo in a vector_block comment.](https://github.com/rust-lang/rust/pull/114570)
- [CI: do not hide error logs in a group](https://github.com/rust-lang/rust/pull/114573)
- [:arrow_up: `rust-analyzer`](https://github.com/rust-lang/rust/pull/114576)
- [Rollup of 9 pull requests](https://github.com/rust-lang/rust/pull/114585)
- [Rollup of 8 pull requests](https://github.com/rust-lang/rust/pull/114569) - [@matthiaskrgr](https://github.com/matthiaskrgr)
- [[miri][typo] Fix a typo in a vector_block comment.](https://github.com/rust-lang/rust/pull/114570) - [@ttsugriy](https://github.com/ttsugriy)
- [CI: do not hide error logs in a group](https://github.com/rust-lang/rust/pull/114573) - [@Kobzol](https://github.com/Kobzol)
- [:arrow_up: `rust-analyzer`](https://github.com/rust-lang/rust/pull/114576) - [@lnicola](https://github.com/lnicola)
- [rustc_interface: Dismantle `register_plugins` query](https://github.com/rust-lang/rust/pull/114578) - [@petrochenkov](https://github.com/petrochenkov)
- [Rollup of 9 pull requests](https://github.com/rust-lang/rust/pull/114585) - [@matthiaskrgr](https://github.com/matthiaskrgr)
- [Structurally normalize weak and inherent in new solver](https://github.com/rust-lang/rust/pull/114594) - [@compiler-errors](https://github.com/compiler-errors)
- [Rename method in `opt-dist`](https://github.com/rust-lang/rust/pull/114596) - [@Kobzol](https://github.com/Kobzol)
- [Map RPIT duplicated lifetimes back to fn captured lifetimes](https://github.com/rust-lang/rust/pull/114602) - [@compiler-errors](https://github.com/compiler-errors)
- [Rollup of 7 pull requests](https://github.com/rust-lang/rust/pull/114604) - [@matthiaskrgr](https://github.com/matthiaskrgr)


### Contributors

- [@Enselic](https://github.com/Enselic)
- [@Enselic](https://github.com/Enselic)
- [@RalfJung](https://github.com/RalfJung)
- [@Trolldemorted](https://github.com/Trolldemorted)
- [@matthiaskrgr](https://github.com/matthiaskrgr)
- [@matthiaskrgr](https://github.com/matthiaskrgr)
- [@petrochenkov](https://github.com/petrochenkov)
- [@ttsugriy](https://github.com/ttsugriy)
- [@compiler-errors](https://github.com/compiler-errors)
- [@Kobzol](https://github.com/Kobzol)
- [@lnicola](https://github.com/lnicola)
- [@matthiaskrgr](https://github.com/matthiaskrgr)
- [@lnicola](https://github.com/lnicola)

0 comments on commit 019d75a

Please sign in to comment.