github webhook seems not work
See original GitHub issueBug Report
SUMMARY
I wanna to trigger role import when the github repo is updated. But github webhook seems not work. And there is no detail doc at https://docs.ansible.com/ansible/latest/reference_appendices/galaxy.html#travis-integrations
And there is no code to support ansible-galaxy setup github
source.
Travis works. But travis only support notification when build start/cancel/error/success/failure. But this is meaningless, because the pull request is not merged.
STEPS TO REPRODUCE
- create webhook on github project. and use the token <github token>
- setup github webhook on galaxy side by following ansible-galaxy setup github jeffrey4l ansible-alertmanager-role <github token>
- trigger webhook on github side.
EXPECTED RESULTS
Response should be 200.
ACTUAL RESULTS
Get 500 error
Headers
Content-Length: 27
Content-Type: text/html
Date: Wed, 28 Nov 2018 01:26:01 GMT
Server: gunicorn/19.7.1
Set-Cookie: xxxx
Vary: Cookie
X-Frame-Options: SAMEORIGIN
X-REQUEST-ID: bbbb
Body
<h1>Server Error (500)</h1>
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
GitHub: Webhook Troubleshooting - CloudBees Support
A.1 Webhook has not been generated or it is disabled (red cross) · Check that "GitHub-API-User" has Admin permissions for the repo. ·...
Read more >Guide for Troubleshooting GitHub Webhooks - Hookdeck
Go to Settings → Webhooks. On the Webhooks page, click on the Add webhook button on the top right-hand corner.
Read more >Jenkins: Github webhook does not trigger any job
Run the job manually in Jenkins, ensure that it works. ... (repeating a previous one won't trigger a new build even if webhooks...
Read more >Github webhooks not working? - store - snapcraft.io
Disconnecting and reconnecting the repo led to a warning message “The GitHub Webhook could not be created. Please trigger a new build manually.”....
Read more >webhook on Github always fails We couldn't deliver this ...
You need to specify an IP address GitHub can contact over the internet not the actual IP address . Steps: 1.Download the https://ngrok.com/ ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is there any reason for not supporting Github webhooks now and in the future @chouseknecht ? Any background or context for this?
Looks like the HTTP POST payload Travis sends it documented here: https://docs.travis-ci.com/user/notifications/#webhooks-delivery-format
So perhaps we can mimic this behavior in a Github action. However it would be nice to know which fields are actually used by Galaxy to trigger a re-import. So we don’t have to build the entire structure and maybe just send a subset of that Travis payload. At least until Galaxy supports GH actions natively…