Skip to content

Commit

Permalink
chore: Update update-authors.sh script (#57)
Browse files Browse the repository at this point in the history
* chore: update update-authors.sh script

* chore: update update-authors.sh script
  • Loading branch information
bigmoby authored Jul 1, 2024
1 parent 5b484e4 commit 7b33b62
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/authors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ jobs:
update-authors:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run update-authors.sh script file
run: |
chmod +x ./tools/update-authors.sh
./tools/update-authors.sh
shell: bash
shell: bash
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update AUTHORS.md file
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ radicalbit-ai-monitoring is developed and maintained by a community of people in


<p align="center">
<img src="https://contributors-img.web.app/image?repo=radicalbit/radicalbit-ai-monitoring" width = "500"/>
<img src="https://contributors-img.web.app/image?repo=radicalbit/radicalbit-ai-monitoring" width="500"/>
</p>


Contributors (ordered by first contribution.)
Contributors (ordered by first contribution.)
-------------------------------------
[Full List of Contributors](https://github.com/radicalbit/radicalbit-ai-monitoring/graphs/contributors)

- Paolo Filippelli (<[email protected]>)
- Roberto Bentivoglio (<[email protected]>)
- paoloyx (<[email protected]>)
- Luca Tagliabue (<[email protected]>)
- Mauro Cortellazzi (<[email protected]>)
- Stefano Zamboni (<[email protected]>)
Expand All @@ -29,6 +28,8 @@ Contributors (ordered by first contribution.)
- Daniele Tria (<[email protected]>)
- rivamarco (<[email protected]>)
- d-croci (<[email protected]>)
- bigmoby (<[email protected]>)
- cybermarinella (<[email protected]>)
- rivamarco (<[email protected]>)
- BigMoby (<[email protected]>)

#### Generated by tools/update-authors.sh.
23 changes: 16 additions & 7 deletions tools/update-authors.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
#!/bin/sh
#Update AUTHORS.md based on git history.
# Update AUTHORS.md based on git history.

git log --reverse --format='%aN (<%aE>)' | perl -we '
BEGIN {
%seen = (), @authors = ();
%seen_emails = ();
}
while (<>) {
next if $seen{$_};
my $line = $_;
next if /(dependabot\[bot\])/;
next if /(devops\@radicalbit.ai)/;
$seen{$_} = push @authors, "- ", $_;
next if /(devops\@users.noreply.github.com)/;
# Extract the email
if ($line =~ /<(.+?)>/) {
my $email = $1;
# Skip if the email has been seen
next if $seen_emails{$email}++;
}
push @authors, "- ", $line;
}
END {
print "<!--\n";
Expand All @@ -20,13 +29,13 @@ END {
print "============================\n";
print "radicalbit-ai-monitoring is developed and maintained by a community of people interested in providing a comprehensive solution for monitoring your Machine Learning and Large Language Models in production.\n\n\n";
print "<p align=\"center\">\n";
print "<img src=\"https://contributors-img.web.app/image?repo=radicalbit/radicalbit-ai-monitoring\" width = \"500\"/>\n";
print "<img src=\"https://contributors-img.web.app/image?repo=radicalbit/radicalbit-ai-monitoring\" width=\"500\"/>\n";
print "</p>\n\n\n";
print "Contributors (ordered by first contribution.)\n";
print "Contributors (ordered by first contribution.)\n";
print "-------------------------------------\n";
print "[Full List of Contributors](https://github.com/radicalbit/radicalbit-ai-monitoring/graphs/contributors)\n\n";
print @authors, "\n";
print " ";
print "#### Generated by tools/update-authors.sh.\n";
}
' > AUTHORS.md
' > AUTHORS.md

0 comments on commit 7b33b62

Please sign in to comment.