A little something to help PTB devs with their releases.
Logging changes from the commit history is a tiresome process and even more so, if you need the log in different markup languages.
The devs of python-telegram-bot
have to fear no more!
- Install the python requirements by
pip install -r requirements.txt
. - Save a copy of
example_main.py
asmain.py
and fill in your configurations:new_version
: The version that you are about to releasegithub_token
: A GitHub GraphQL token with read access to the PTB organisationbot_token
: A Telegram Bot tokentelegram_chat_id
: A chat ID the bot can send messages to, preferably yoursptb_dir
: The path to your local clone of the PTB repository
- Run
python main.py
. This fetches the current changelog and guides you through the next steps. In the end, you will have a message on Telegram ready to be copied to the PTB channel and the PTB repository will be ready for the release commit.
That's it. Happy releasing! 🙂