Giter Site home page Giter Site logo

webhooks's Issues

[Git] Multiple lines in commit message

AppVeyor website do not display properly git comments that have multiple lines. I am using post-receive.rb script. After triggering new build commit message visible on the website have "\n" instead of actual new line characters. Example:

"AppVeyor setting updated\n\nSigned-off-by: Author <email_addr>"

README.md

In the README.md file, near the bottom,

http://curl.haxx.se/ca/cacert.pem

can be changed to

https://curl.haxx.se/ca/cacert.pem

Sorry about the issue, but for this one thing didn't want to fork...

`Error sending webhook: 404` with Ruby 2.1

git/post-receive.rb didn't work for me, because it wasn't sendinf the ?id=XXXXXXXXXXXX in the URL request.

I had to apply this change:

diff --git a/git/post-receive.rb b/git/post-receive.rb
index 49eeb6a..d8e79e0 100644
--- a/git/post-receive.rb
+++ b/git/post-receive.rb
@@ -116,7 +116,7 @@ payload = {

 # send webhook
 uri = URI(webhook_url)
-req = Net::HTTP::Post.new(uri.path, initheader = {'Content-Type' =>'application/json'})
+req = Net::HTTP::Post.new(uri.request_uri, initheader = {'Content-Type' =>'application/json'})
 # ruby 2.0: req = Net::HTTP::Post.new uri
 #req.basic_auth 'username', 'password'
 req.body = payload.to_json

See http://stackoverflow.com/questions/2986252/ruby-can-net-http-make-a-get-and-post-request-simultaneously#comment50838947_5344393

Encoding Problem

Hi

i get the following error:
post-receive:92:in `split': invalid byte sequence in US-ASCII (ArgumentError)

i think its because my Author name contains a ΓΆ char

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.