This commit is contained in:
Joachim Hill-Grannec 2017-09-01 10:49:41 -04:00
parent dbc5015833
commit cfb46f2f1e
2 changed files with 48 additions and 48 deletions

View File

@ -2,15 +2,16 @@ package main
import ( import (
"fmt" "fmt"
"os"
"log"
"github.com/urfave/cli" "github.com/urfave/cli"
"log"
"os"
) )
const ( const (
respFormat = "Webhook %d\n URL: %s\n RESPONSE STATUS: %s\n RESPONSE BODY: %s\n" respFormat = "Webhook %d\n URL: %s\n RESPONSE STATUS: %s\n RESPONSE BODY: %s\n"
debugRespFormat = "Webhook %d\n URL: %s\n METHOD: %s\n HEADERS: %s\n REQUEST BODY: %s\n RESPONSE STATUS: %s\n RESPONSE BODY: %s\n" debugRespFormat = "Webhook %d\n URL: %s\n METHOD: %s\n HEADERS: %s\n REQUEST BODY: %s\n RESPONSE STATUS: %s\n RESPONSE BODY: %s\n"
) )
var build string var build string
func main() { func main() {

View File

@ -1,16 +1,17 @@
package main package main
import ( import (
"fmt"
"os"
"io/ioutil"
"bytes" "bytes"
"net/url"
"crypto/tls" "crypto/tls"
"net/http"
"encoding/json" "encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"strings" "strings"
) )
type ( type (
Repo struct { Repo struct {
Owner string `json:"owner"` Owner string `json:"owner"`
@ -163,5 +164,3 @@ func (p Plugin) Exec() error {
} }
return nil return nil
} }