-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
daemon: added support for github form-encoded webhooks #528
daemon: added support for github form-encoded webhooks #528
Conversation
Codecov Report
@@ Coverage Diff @@
## master #528 +/- ##
==========================================
+ Coverage 56.09% 56.22% +0.14%
==========================================
Files 60 60
Lines 2951 2983 +32
==========================================
+ Hits 1655 1677 +22
- Misses 1089 1098 +9
- Partials 207 208 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is terrific, thanks @didil !
Just a few changes before we can merge this:
- can you remove the changes to
.static
? I notice that there's something weird going on with the images for some people, but I'd rather it be resolved in a separate PR - I notice you've changed the permissions on
test/keys/id_rsa
from 755 to 644 - it was recently changed to 755 in 5a0414e, since one of our members (@mRabitsky ) was having issues with his SSH client saying that the permissions on the key were too open. Did the key not work for you as-is? If it did, can you revert the change? If it did not, can you revert the change anyway? I'll open up a ticket to look into how to resolve this long-term
Thank you!
daemon/inertiad/webhook/github.go
Outdated
case "application/json": | ||
return body, nil | ||
default: | ||
return nil, errors.New("Github Webhook Content-Type must be application/json or x-www-form-urlencoded") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Github webhook Content-Type must be application/json or application/x-www-form-urlencoded" π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π―
09ca84c
changes pushed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @didil ! This is great π
ποΈ Ticket(s): Closes #369
π· Changes
Added content-type application/x-www-form-urlencoded support for github
github request form body:
payload={the-same-json-payload-from-json-requests}
π¦ Testing Instructions
make tests
local daemon and test project / webhooks