Skip to content

daemon: return ok if webhook type is ping#532

Merged
bobheadxi merged 3 commits into
masterfrom
daemon/#525-webhooks
Feb 7, 2019
Merged

daemon: return ok if webhook type is ping#532
bobheadxi merged 3 commits into
masterfrom
daemon/#525-webhooks

Conversation

@bobheadxi

Copy link
Copy Markdown
Member

🎟️ Ticket(s): Closes #525


👷 Changes

  • EventType is now a custom string type for clarity
  • GitHub event parsing now recognizes the ping event (see ticket Webhook deliveries time out #525 for more context)
  • Webhook processing now accounts for the PingEvent and returns appropriately

🔦 Testing Instructions

Follow the CONTRIBUTING instructions and set up webhooks - GitHub should send a test event that is verified by inertiad.

Also run the tests

@bobheadxi bobheadxi added the pr: finalized needs review and final approval label Feb 6, 2019
@codecov

codecov Bot commented Feb 6, 2019

Copy link
Copy Markdown

Codecov Report

Merging #532 into master will decrease coverage by 0.05%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #532      +/-   ##
==========================================
- Coverage   56.25%   56.21%   -0.04%     
==========================================
  Files          60       60              
  Lines        2985     2991       +6     
==========================================
+ Hits         1679     1681       +2     
- Misses       1098     1102       +4     
  Partials      208      208
Impacted Files Coverage Δ
daemon/inertiad/webhook/parse.go 76.93% <ø> (ø) ⬆️
daemon/inertiad/daemon/webhook.go 26.67% <0%> (-1.9%) ⬇️
daemon/inertiad/webhook/github_push.go 83.34% <100%> (ø) ⬆️
daemon/inertiad/webhook/gitlab_push.go 83.34% <100%> (ø) ⬆️
daemon/inertiad/webhook/bitbucket_push.go 80% <100%> (ø) ⬆️
daemon/inertiad/webhook/github.go 68.43% <66.67%> (+3.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e600916...9e24778. Read the comment docs.

@bobheadxi bobheadxi force-pushed the daemon/#525-webhooks branch from 533fe62 to 75af90d Compare February 7, 2019 05:13

@seifghazi seifghazi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@bobheadxi bobheadxi merged commit 51c177b into master Feb 7, 2019
@bobheadxi bobheadxi deleted the daemon/#525-webhooks branch February 7, 2019 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: finalized needs review and final approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants