From 50fb6194ef9e351d5c0e5c264f6b2cabf57fed6a Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Tue, 2 Jan 2024 19:25:11 +0000 Subject: [PATCH] Resort tabs --- doc/acknowledgements/acknowledgements.rst | 48 +++++++++++++++-------- make_help_scripts/create_pr_stats.py | 24 ++++++------ 2 files changed, 44 insertions(+), 28 deletions(-) diff --git a/doc/acknowledgements/acknowledgements.rst b/doc/acknowledgements/acknowledgements.rst index 3dedb6753da..34c69328728 100644 --- a/doc/acknowledgements/acknowledgements.rst +++ b/doc/acknowledgements/acknowledgements.rst @@ -9,25 +9,33 @@ The following people were maintaining the ``ros2_control`` framework, showing th .. tabs:: - .. tab:: All-Time Reviews + .. tab:: Recent Contributions + + Contributions during the past 12 months .. raw:: html - :file: reviewers_maintainers_stats.html + :file: contributors_maintainers_stats_recent.html - .. tab:: 12 Months + .. tab:: All-Time Contrib + + All-time contributions .. raw:: html - :file: reviewers_maintainers_stats_recent.html + :file: contributors_maintainers_stats.html - .. tab:: All-Time Contributions + .. tab:: Recent Reviews + + Reviews during the past 12 months .. raw:: html - :file: contributors_maintainers_stats.html + :file: reviewers_maintainers_stats_recent.html - .. tab:: 12 Months + .. tab:: All-Time Reviews + + All-time reviews .. raw:: html - :file: contributors_maintainers_stats_recent.html + :file: reviewers_maintainers_stats.html Contributors ---------------- @@ -35,25 +43,33 @@ The following people have contributed to the development of this project by prov .. tabs:: - .. tab:: All-Time Reviews + .. tab:: Recent Contributions + + Contributions during the past 12 months .. raw:: html - :file: reviewers_stats.html + :file: contributors_stats_recent.html - .. tab:: 12 Months + .. tab:: All-Time Contrib + + All-time contributions .. raw:: html - :file: reviewers_stats_recent.html + :file: contributors_stats.html - .. tab:: All-Time Contributions + .. tab:: Recent Reviews + + Reviews during the past 12 months .. raw:: html - :file: contributors_stats.html + :file: reviewers_stats_recent.html - .. tab:: 12 Months + .. tab:: All-Time Reviews + + All-time reviews .. raw:: html - :file: contributors_stats_recent.html + :file: reviewers_stats.html Companies and Institutions diff --git a/make_help_scripts/create_pr_stats.py b/make_help_scripts/create_pr_stats.py index 08c7f7515d2..5f721cf6e5d 100644 --- a/make_help_scripts/create_pr_stats.py +++ b/make_help_scripts/create_pr_stats.py @@ -261,7 +261,7 @@ def get_pr_stats(owner, repos, branches, whitelist, blacklist, earliest_date="") for commits in get_all_pages(commits_url): for commit in commits: if commit['author'] is None: - print('No author in commit: ' + commit['url']) + # print('No author in commit: ' + commit['url']) continue contributor_login = commit['author']['login'] if contributor_login in blacklist: @@ -277,7 +277,7 @@ def get_pr_stats(owner, repos, branches, whitelist, blacklist, earliest_date="") deletions = commit_details['stats']['deletions'] total_changes = additions + deletions else: - print('No stats in commit details: ' + commit['url']) + # print('No stats in commit details: ' + commit['url']) total_changes = 0 date = commit_details['commit']['author']['date'] if contributor_login in current_dict: @@ -554,7 +554,7 @@ def create_contributors_table_with_graph(contributors_stats, user_details, table Contributor - PR Count + Commit Count Line Changes @@ -660,15 +660,15 @@ def print_contributors_stats(contributors_stats): # Replace with your GitHub repository owner and name owner = "ros-controls" repos = [ - "ros2_control", - "ros2_controllers", - "ros2_control_demos", - "control_toolbox", - "realtime_tools", - "control_msgs", - "control.ros.org", - "gazebo_ros2_control", - "gz_ros2_control", + # "ros2_control", + # "ros2_controllers", + # "ros2_control_demos", + # "control_toolbox", + # "realtime_tools", + # "control_msgs", + # "control.ros.org", + # "gazebo_ros2_control", + # "gz_ros2_control", "kinematics_interface" ]