@@ -8,7 +8,7 @@ module.exports = {
8
8
createDeployPlugin ( options ) {
9
9
var DeployPlugin = DeployPluginBase . extend ( {
10
10
name : options . name ,
11
- requiredConfig : [ 'publicURL' , 'token' , 'userOrOrganization ' , 'repo ' , 'commitSha ' ] ,
11
+ requiredConfig : [ 'publicURL' , 'token' , 'username ' , 'reporname ' , 'commit ' ] ,
12
12
13
13
willDeploy ( context ) {
14
14
return this . notifyPullRequestOfDeployPending ( context ) ;
@@ -32,9 +32,9 @@ module.exports = {
32
32
33
33
return new Promise ( ( resolve , reject ) => {
34
34
github . repos . createStatus ( {
35
- owner : this . readConfig ( 'userOrOrganization ' ) ,
36
- repo : this . readConfig ( 'repo ' ) ,
37
- sha : this . readConfig ( 'commitSha ' ) ,
35
+ owner : this . readConfig ( 'username ' ) ,
36
+ repo : this . readConfig ( 'reporname ' ) ,
37
+ sha : this . readConfig ( 'commit ' ) ,
38
38
state : 'error' ,
39
39
description : 'Build failed!' ,
40
40
context : 'ember-cli-deploy' ,
@@ -58,9 +58,9 @@ module.exports = {
58
58
59
59
return new Promise ( ( resolve , reject ) => {
60
60
github . repos . createStatus ( {
61
- owner : this . readConfig ( 'userOrOrganization ' ) ,
62
- repo : this . readConfig ( 'repo ' ) ,
63
- sha : this . readConfig ( 'commitSha ' ) ,
61
+ owner : this . readConfig ( 'username ' ) ,
62
+ repo : this . readConfig ( 'reporname ' ) ,
63
+ sha : this . readConfig ( 'commit ' ) ,
64
64
state : 'pending' ,
65
65
description : 'Building application!' ,
66
66
context : 'ember-cli-deploy' ,
@@ -84,9 +84,9 @@ module.exports = {
84
84
85
85
return new Promise ( ( resolve , reject ) => {
86
86
github . repos . createStatus ( {
87
- owner : this . readConfig ( 'userOrOrganization ' ) ,
88
- repo : this . readConfig ( 'repo ' ) ,
89
- sha : this . readConfig ( 'commitSha ' ) ,
87
+ owner : this . readConfig ( 'username ' ) ,
88
+ repo : this . readConfig ( 'reporname ' ) ,
89
+ sha : this . readConfig ( 'commit ' ) ,
90
90
state : 'success' ,
91
91
description : 'Complete build!' ,
92
92
target_url : this . readConfig ( 'publicURL' ) ,
0 commit comments