diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index fe72e587..193ac913 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -29,4 +29,4 @@ jobs: with: mode: minimum count: 1 - labels: "CI, dependencies, docs and examples, ecolor, eframe, egui_extras, egui_glow, egui-wgpu, egui-winit, egui, epaint" + labels: "CI, dependencies, docs and examples, ecolor, eframe, egui_extras, egui_glow, egui-wgpu, egui-winit, egui, epaint, plot, typo" diff --git a/scripts/generate_changelog.py b/scripts/generate_changelog.py index 3431bf98..2e97d01b 100755 --- a/scripts/generate_changelog.py +++ b/scripts/generate_changelog.py @@ -141,6 +141,8 @@ def main() -> None: unsorted_prs = [] unsorted_commits = [] + plot = [] + for commit_info, pr_info in zip(commit_infos, pr_infos): hexsha = commit_info.hexsha title = commit_info.title @@ -164,11 +166,18 @@ def main() -> None: if gh_user_name not in OFFICIAL_DEVS: summary += f" (thanks [@{gh_user_name}](https://github.com/{gh_user_name})!)" + if 'typo' in labels: + continue # We get so many typo PRs. Let's not flood the changelog with them. + added = False - for crate in crate_names: - if crate in labels: - sections.setdefault(crate, []).append(summary) - added = True + if 'plot' in labels: + plot.append(summary) + added = True + else: + for crate in crate_names: + if crate in labels: + sections.setdefault(crate, []).append(summary) + added = True if not added: if not any(label in labels for label in ignore_labels): @@ -179,6 +188,9 @@ def main() -> None: if crate in sections: summary = sections[crate] print_section(crate, summary) + if crate == 'egui': + if 0 < len(plot): + print_section("egui plot", plot) print_section("Unsorted PRs", unsorted_prs) print_section("Unsorted commits", unsorted_commits)