go-github icon indicating copy to clipboard operation
go-github copied to clipboard

Add hooks support for WebSub (formerly PubSubHubbub) protocol

Open YuyaAbo opened this issue 4 years ago • 2 comments

resolves #1265

Note: PubSubHubbub seems to have been renamed WebSub when it was adopted by the W3C. So we use the name WebSub in our code. ref https://github.com/pubsubhubbub/PubSubHubbub

Added support for API to subscribe and unsubscribe to repository events via WebSub protocol.

GitHub API Docs: https://docs.github.com/en/rest/webhooks#pubsubhubbub WebSub Docs: https://www.w3.org/TR/websub/

WebSub requires Content-Type to be application/x-www-form-urlencoded, so a new factory function has been added.

This request MUST have a Content-Type header of application/x-www-form-urlencoded (described in Section 4.10.22.6 [HTML5]) https://www.w3.org/TR/websub/#subscriber-sends-subscription-request

YuyaAbo avatar Jun 26 '22 06:06 YuyaAbo

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jun 26 '22 06:06 google-cla[bot]

Codecov Report

Merging #2397 (bf7f3b4) into master (404bf94) will decrease coverage by 0.01%. The diff coverage is 94.11%.

@@            Coverage Diff             @@
##           master    #2397      +/-   ##
==========================================
- Coverage   98.06%   98.04%   -0.02%     
==========================================
  Files         119      119              
  Lines       10546    10597      +51     
==========================================
+ Hits        10342    10390      +48     
- Misses        140      142       +2     
- Partials       64       65       +1     
Impacted Files Coverage Δ
github/github.go 97.37% <83.33%> (-0.43%) :arrow_down:
github/repos_hooks.go 100.00% <100.00%> (ø)

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 404bf94...bf7f3b4. Read the comment docs.

codecov[bot] avatar Jun 26 '22 11:06 codecov[bot]