forked from mortbopet/Ripes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert contributors list script to Python
- Loading branch information
Silvia González Rodríguez
committed
Jan 31, 2025
1 parent
05f8963
commit 1552f3e
Showing
3 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import subprocess | ||
|
||
git_output = subprocess.run( | ||
["git", "shortlog", "-sn", "--no-merges"], capture_output=True, text=True | ||
) | ||
lines = git_output.stdout.splitlines() | ||
names = [line.partition("\t")[-1] for line in lines] | ||
|
||
text = '<p align="center" style="margin: 0">' | ||
for name in names: | ||
text = text + name + "</br>\n" | ||
text = text + "</p>" | ||
|
||
file = open("gen_contributors.html", "w") | ||
file.write(text) | ||
file.close() |
This file was deleted.
Oops, something went wrong.