mirror of
https://github.com/harness/drone.git
synced 2025-05-20 19:09:59 +08:00
variable scoping
This commit is contained in:
parent
e68ae7145b
commit
442fc72eee
@ -19,8 +19,8 @@ function RepoViewModel(repo) {
|
||||
// construct the build entry if it doesn't already exist
|
||||
// so that we can append to the DOM. The code may not be
|
||||
// pretty, but it is simple enough and it works.
|
||||
authoredOrDeployed = "authored"
|
||||
branchOrDeploy = data.branch
|
||||
var authoredOrDeployed = "authored"
|
||||
var branchOrDeploy = data.branch
|
||||
if ( data.event == "deployment" ) {
|
||||
authoredOrDeployed = "deployed"
|
||||
branchOrDeploy = data.deploy_to
|
||||
|
Loading…
Reference in New Issue
Block a user