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