Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetoz committed Apr 20, 2018
1 parent 4bd3995 commit 7403561
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions prwatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
)

type TriggerData struct {
PR int
PR int
FromRef string
ToRef string
ToRef string
}

type PullRequestsResponse struct {
Expand All @@ -30,10 +30,10 @@ type PullRequestsResponse struct {
CreatedDate int64 `json:"createdDate"`
UpdatedDate int64 `json:"updatedDate"`
FromRef struct {
ID string `json:"id"`
ID string `json:"id"`
} `json:"fromRef"`
ToRef struct {
ID string `json:"id"`
ToRef struct {
ID string `json:"id"`
} `json:"toRef"`
} `json:"values"`
}
Expand Down Expand Up @@ -148,7 +148,7 @@ func getTriggerList(pull_requests *PullRequestsResponse) []TriggerData {
}

func triggerToUri(id int, data TriggerData, trigger_uri string) {
url := trigger_uri + "&cause=pr-watcher&pr=" + strconv.Itoa(data.PR) +"&fromRef=" + data.FromRef +"&toRef=" + data.ToRef
url := trigger_uri + "&cause=pr-watcher&pr=" + strconv.Itoa(data.PR) + "&fromRef=" + data.FromRef + "&toRef=" + data.ToRef
log.Info("sending post request to ", url)

req, _ := http.NewRequest("POST", url, nil)
Expand Down

0 comments on commit 7403561

Please sign in to comment.