Skip to content

Commit

Permalink
Resort tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Jan 2, 2024
1 parent eeb1c86 commit 50fb619
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 28 deletions.
48 changes: 32 additions & 16 deletions doc/acknowledgements/acknowledgements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,67 @@ 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
----------------
The following people have contributed to the development of this project by providing valuable reviews or by submitting pull requests, see :ref:`doc/contributing/contributing:contributing` for more information.

.. 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
Expand Down
24 changes: 12 additions & 12 deletions make_help_scripts/create_pr_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -554,7 +554,7 @@ def create_contributors_table_with_graph(contributors_stats, user_details, table
<tr>
<th></th>
<th>Contributor</th>
<th>PR Count</th>
<th>Commit Count</th>
<th>Line Changes</th>
<!--<th>Last Review Date</th>-->
</tr>
Expand Down Expand Up @@ -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"
]

Expand Down

0 comments on commit 50fb619

Please sign in to comment.