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 (
"fmt"
"os"
"log"
"github.com/urfave/cli"
"log"
"os"
)
const (
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"
)
var build string
func main() {

View File

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