diff options
| author | Bobby <[email protected]> | 2022-11-05 03:20:37 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-05 03:20:37 -0400 |
| commit | 43823882c7ae18b19b03134fb57862a8df0ca8a1 (patch) | |
| tree | cbdc328be2788c264628ae5168224243fe399993 | |
| parent | 880bf33c0a3a69918bb1fadd5969d6ac5a2c0ba0 (diff) | |
| download | texty-43823882c7ae18b19b03134fb57862a8df0ca8a1.tar.xz texty-43823882c7ae18b19b03134fb57862a8df0ca8a1.zip | |
revert: revert and fix maintainer script
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | scripts/maintainers.py | 7 |
2 files changed, 6 insertions, 6 deletions
@@ -113,7 +113,4 @@ The maintainers in the `maintainers.yml` file are listed in the following format > **Note**: Please do not edit the `README.md` file directly. Instead, edit the `maintainers.yml` file and run the `commit.sh` script to generate the `README.md` file. -<!-- maintainers -->
- [Bobby](luciferreeves) - [https://thatcomputerscientist.com](https://thatcomputerscientist.com)
 -- [Bobby](luciferreeves) - [https://thatcomputerscientist.com](https://thatcomputerscientist.com) - -
\ No newline at end of file +<!-- maintainers -->
- [Bobby](luciferreeves) - [https://thatcomputerscientist.com](https://thatcomputerscientist.com)

\ No newline at end of file diff --git a/scripts/maintainers.py b/scripts/maintainers.py index b4111b2..2ab3b0f 100644 --- a/scripts/maintainers.py +++ b/scripts/maintainers.py @@ -36,8 +36,11 @@ def main(): image_url = "https://github.com/{}.png?size=40".format(maintainer['github']) maintainer_images += " ".format(maintainer['name'], image_url) - # Replace "<!-- maintainers -->" in the README.md file - readme = readme.replace("<!-- maintainers -->", "<!-- maintainers -->\r" + maintainers_list + "\r" + maintainer_images) + # Remove everything below "<!-- maintainers -->" in the README.md file + readme = readme.split("<!-- maintainers -->")[0] + + # Add the list of maintainers to the README.md file + readme += "<!-- maintainers -->\r" + maintainers_list + "\r" + maintainer_images # Save the README.md file with open('README.md', 'w') as f: |
