Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: semantic-release/github
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.5.7
Choose a base ref
...
head repository: semantic-release/github
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.5.8
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Dec 11, 2019

  1. Copy the full SHA
    e2a069f View commit details
Showing with 4 additions and 2 deletions.
  1. +1 −1 package.json
  2. +3 −1 test/get-client.test.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
"fs-extra": "^8.0.0",
"globby": "^10.0.0",
"http-proxy-agent": "^3.0.0",
"https-proxy-agent": "^3.0.0",
"https-proxy-agent": "^4.0.0",
"issue-parser": "^5.0.0",
"lodash": "^4.17.4",
"mime": "^2.4.3",
4 changes: 3 additions & 1 deletion test/get-client.test.js
Original file line number Diff line number Diff line change
@@ -14,6 +14,8 @@ import rateLimit from './helpers/rate-limit';

const getClient = proxyquire('../lib/get-client', {'./definitions/rate-limit': rateLimit});

process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;

test.serial('Use a http proxy', async t => {
const server = http.createServer();
await promisify(server.listen).bind(server)();
@@ -73,7 +75,7 @@ test.serial('Use a https proxy', async t => {
githubToken: 'github_token',
githubUrl: `https://localhost:${serverPort}`,
githubApiPathPrefix: '',
proxy: {host: 'localhost', port: proxyPort, rejectUnauthorized: false, headers: {foo: 'bar'}},
proxy: {host: 'localhost', port: proxyPort, headers: {foo: 'bar'}},
});

await github.repos.get({repo: 'repo', owner: 'owner'});