https://github.com/reflexe/lmmsbot
A simple webhook bot that grabs binaries from Travis logs and post them as a comment
https://github.com/reflexe/lmmsbot
Last synced: 12 months ago
JSON representation
A simple webhook bot that grabs binaries from Travis logs and post them as a comment
- Host: GitHub
- URL: https://github.com/reflexe/lmmsbot
- Owner: Reflexe
- Created: 2018-08-19T22:54:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-12T20:21:28.000Z (over 7 years ago)
- Last Synced: 2025-02-23T09:31:19.451Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LmmsBot
A simple webhook bot that grabs binaries from Travis logs and post them as a comment. All you need to do it to upload them to `transfer.sh` and set a webhook.
# Setting up
- Make sure you build with Travis, and upload your artifacts to transfer.sh.
- Install pygithub and travispy.
- Create a new repository that would be used for re-uploading the atrifacts.
- Create a new file `settings.py` with this content (fill the requested fields):
```python
TEMP_DIR_PATH = ''
GITHUB_USER = ''
GITHUB_TOKEN = ''
GITHUB_OBJECTS_REPO = ''
GITHUB_OBJECTS_REPO_BRANCH = 'master'
BOT_COMMENT_BODY_TEMPLATE = '''## Downloads for this pull request\n\n'''
BOT_COMMENT_DOWNLOAD_LINE_TEMPLATE = "- {platform}: [download]({link}).\n"
BOT_COMMENT_FOOTER = '\n\nGenerated by the [LMMS pull requests bot](https://github.com/Reflexe/LmmsBot/). '
```
- [Configure](http://flask.pocoo.org/docs/1.0/installation/) and [run](http://flask.pocoo.org/docs/1.0/quickstart/) a flask server to run your file.
- Setup a webhook for the `Statuses` events *as a json document* (the default is not json for some strange reason).