Last active
June 25, 2020 16:46
-
-
Save Bibo-Joshi/2fbb1b59af8b69fe6de5951f00328e22 to your computer and use it in GitHub Desktop.
Links for PTB Changelog. Superseded by https://github.com/Bibo-Joshi/ptb-changelog-helper
This file contains hidden or 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
| # Write the numbers of all merged PRs in a file named 'prs', each one in a new line | |
| # RST-links will be written to 'links' | |
| links = [] | |
| with open('prs', 'r') as file: | |
| for pr in file.readlines(): | |
| pr = pr.strip('\n') | |
| pr = '.. _`#{}`: https://github.com/python-telegram-bot/python-telegram-bot/pull/{}'.format(pr, pr) | |
| links.append(pr) | |
| out = '\n'.join(links) | |
| with open('links', 'w') as file: | |
| file.write(out) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment