Skip to content

Commit

Permalink
+ onError commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Komrakov committed Sep 14, 2015
1 parent 7594557 commit 1034911
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions service/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"strings"
"github.com/google/go-github/github"
"github.com/alexkomrakov/gohub/mongo"
"fmt"
)

func ProcessHook(event, body string) {
Expand Down Expand Up @@ -83,12 +82,8 @@ func RunCommands(deploy map[string]mongo.DeployScenario, client *github.Client,
}
// TODO Refactor this shit
if has_error == true {
fmt.Println(config)

for _, command := range config.Error {
fmt.Println(command)
for commandType, actionStr := range command {
fmt.Println(actionStr)
error = ""
if commandType == "status" {
out, err := SetGitStatus(client, commit_credentials.Login, commit_credentials.Name, commit_credentials.SHA, actionStr)
Expand Down

0 comments on commit 1034911

Please sign in to comment.