Skip to content

Commit

Permalink
feat(condition): add GetCurrentBranch method
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed May 24, 2017
1 parent 153977b commit 96d0d4a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions condition/condition.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package condition

import (
"os"
)

func GetCurrentBranch() string {
// TODO: support other CIs
return os.Getenv("TRAVIS_BRANCH")
}

0 comments on commit 96d0d4a

Please sign in to comment.