danigm / gitlab-telegram-bot Goto Github PK
View Code? Open in Web Editor NEWSimple gitlab telegram bot that listen webhooks
Simple gitlab telegram bot that listen webhooks
I tried out your telegram bot with the latest gitlab version (10.1.0-ce.0) and it does not work. I get a Http 500 error in the logs:
23/10/2017 16:33:43 * Running on http://0.0.0.0:10111/ (Press CTRL+C to quit)
23/10/2017 16:56:44[2017-10-23 14:56:44,937] ERROR in app: Exception on / [POST]
23/10/2017 16:56:44Traceback (most recent call last):
23/10/2017 16:56:44 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
23/10/2017 16:56:44 response = self.full_dispatch_request()
23/10/2017 16:56:44 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
23/10/2017 16:56:44 rv = self.handle_user_exception(e)
23/10/2017 16:56:44 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
23/10/2017 16:56:44 reraise(exc_type, exc_value, tb)
23/10/2017 16:56:44 File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
23/10/2017 16:56:44 raise value
23/10/2017 16:56:44 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
23/10/2017 16:56:44 rv = self.dispatch_request()
23/10/2017 16:56:44 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
23/10/2017 16:56:44 return self.view_functionsrule.endpoint
23/10/2017 16:56:44 File "./app.py", line 60, in webhook
23/10/2017 16:56:44 kind = data['obj_kind']
23/10/2017 16:56:44KeyError: 'obj_kind'
23/10/2017 16:56:44172.20.2.4 - - [23/Oct/2017 14:56:44] "POST / HTTP/1.1" 500 -
Thanks for this bot. It's amazing, however, I never receive updates about Pipeline Events
. Everything else works fine.
Details:
gitlab 10.2.2 (selfhosted)
does this bot also work on github webhooks?
Thanks!
How can I configure the repository in which I want to receive the events?
Hi people.
If an issue created with no assignee the bot returns 500 error and can not send the appropriate message.
The issue originate from the app.py when it's looking for assignee
File "app.py", line 66, in webhook
msg = generateIssueMsg(data)
File "app.py", line 111, in generateIssueMsg
for assignee in data['assignees']:
KeyError: 'assignees'
172.17.0.1 - - [20/Apr/2021 05:58:52] "POST / HTTP/1.1" 500 -
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.