Add get-jira-ticket command

This commit is contained in:
Miguel de la Cruz 2020-03-01 13:02:52 +01:00
parent 5d727b8995
commit 0ae0c6ffdf
4 changed files with 72 additions and 13 deletions

View file

@ -6,7 +6,7 @@ import (
)
func Do(method, username, token, url string, body []byte) (*http.Response, error) {
req, err := http.NewRequest("POST", url, bytes.NewBuffer(body))
req, err := http.NewRequest(method, url, bytes.NewBuffer(body))
if err != nil {
return nil, err
}