Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit c05d41a

Browse files
Updating output of publish operation
1 parent 4681113 commit c05d41a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

octorun/src/api.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,24 @@ ApiWrapper.prototype.getOrgs = function (callback) {
6565
};
6666

6767
ApiWrapper.prototype.publish = function (name, desc, private, organization, callback) {
68+
var callbackHandler = function (error, result) {
69+
callback(error, (!result) ? null : [result.data.name, result.data.clone_url]);
70+
};
71+
6872
if (organization) {
6973
this.octokit.repos.createForOrg({
7074
org: organization,
7175
name: name,
7276
description: desc,
7377
private: private
74-
}, function (error, result) {
75-
callback(error, (!result) ? null : result.data.clone_url);
76-
});
78+
}, callbackHandler);
7779
}
7880
else {
7981
this.octokit.repos.create({
8082
name: name,
8183
description: desc,
8284
private: private
83-
}, function (error, result) {
84-
callback(error, (!result) ? null : result.data.clone_url);
85-
});
85+
}, callbackHandler);
8686
}
8787
};
8888

octorun/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0933c352
1+
46811135

src/GitHub.Api/Installer/OctorunInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public class OctorunInstallDetails
102102
public const string DefaultZipMd5Url = "https://ghfvs-installer.github.com/unity/octorun/octorun.zip.md5";
103103
public const string DefaultZipUrl = "https://ghfvs-installer.github.com/unity/octorun/octorun.zip";
104104

105-
public const string PackageVersion = "0933c352";
105+
public const string PackageVersion = "46811135";
106106
private const string PackageName = "octorun";
107107
private const string zipFile = "octorun.zip";
108108

src/GitHub.Api/Resources/octorun.zip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:77fbfa6bc9f87d1b999cec11de36d6d9d000aad8b5025120452fd9099e889947
3-
size 219625
2+
oid sha256:88514fe0aa33af8ccf81f31f4ca2d4e3b2e08df2f890bb1f18f8d9d5409f7a80
3+
size 219645

0 commit comments

Comments
 (0)