Skip to content

Commit 674455b

Browse files
renamed configs
1 parent 73d1535 commit 674455b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
createDeployPlugin(options) {
99
var DeployPlugin = DeployPluginBase.extend({
1010
name: options.name,
11-
requiredConfig: ['publicURL', 'token', 'userOrOrganization', 'repo', 'commitSha'],
11+
requiredConfig: ['publicURL', 'token', 'username', 'reporname', 'commit'],
1212

1313
willDeploy(context) {
1414
return this.notifyPullRequestOfDeployPending(context);
@@ -32,9 +32,9 @@ module.exports = {
3232

3333
return new Promise((resolve, reject) => {
3434
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'),
3838
state: 'error',
3939
description: 'Build failed!',
4040
context: 'ember-cli-deploy',
@@ -58,9 +58,9 @@ module.exports = {
5858

5959
return new Promise((resolve, reject) => {
6060
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'),
6464
state: 'pending',
6565
description: 'Building application!',
6666
context: 'ember-cli-deploy',
@@ -84,9 +84,9 @@ module.exports = {
8484

8585
return new Promise((resolve, reject) => {
8686
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'),
9090
state: 'success',
9191
description: 'Complete build!',
9292
target_url: this.readConfig('publicURL'),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-cli-deploy-github-deployments",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "",
55
"scripts": {},
66
"repository": "https://github.com/aureliosaraiva/ember-cli-deploy-github-deployments",

0 commit comments

Comments
 (0)