Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(publisher-github): remove deprecated option from @octokit/rest params (6.x) #505

Merged
merged 1 commit into from
May 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/publisher/github/src/util/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default class GitHub {

constructor(authToken: string | undefined = undefined, requireAuth: boolean = false, options: GitHubAPI.Options = {}) {
this.options = merge(
{ protocol: 'https' },
options,
{ headers: { 'user-agent': 'Electron Forge' } },
);
Expand Down
9 changes: 2 additions & 7 deletions packages/publisher/github/test/github_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,12 @@ describe('GitHub', () => {

it('should be able to set the Enterprise URL settings', () => {
const gh = new GitHub('1234', true, {
host: 'github.example.com',
port: 8443,
pathPrefix: '/enterprise',
baseUrl: 'https://github.example.com:8443/enterprise',
});
const api = gh.getGitHub();

expect((api as any).options).to.deep.equal({
protocol: 'https',
host: 'github.example.com',
port: 8443,
pathPrefix: '/enterprise',
baseUrl: 'https://github.example.com:8443/enterprise',
headers: {
'user-agent': 'Electron Forge',
},
Expand Down