-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix enterprise uploadAsset edge case
resolves #320
- Loading branch information
Joe Gallo
committed
Dec 1, 2016
1 parent
01e07cd
commit b020d94
Showing
3 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"use strict"; | ||
|
||
var Client = require("./../lib/index"); | ||
var testAuth = require("./../testAuth.json"); | ||
|
||
var github = new Client({ | ||
debug: true, | ||
host: "github.my-GHE-enabled-company.com", | ||
pathPrefix: "/api/v3" | ||
}); | ||
|
||
github.authenticate({ | ||
type: "oauth", | ||
token: testAuth["token"] | ||
}); | ||
|
||
github.repos.uploadAsset({ | ||
owner: "kaizensoze", | ||
repo: "test2", | ||
id: "4801082", | ||
filePath: "/Users/joegallo/z.sh", | ||
name: "z.sh" | ||
}, function(err, res) { | ||
console.log(err, res); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters