Skip to content

Commit

Permalink
Update dependencies in github package (#1553)
Browse files Browse the repository at this point in the history
* Update octokit package

* define type for function

* fix linter

* Update github package to latest

* Update RELEASES.md
  • Loading branch information
takost committed Oct 10, 2023
1 parent 797f48f commit 494f12b
Show file tree
Hide file tree
Showing 8 changed files with 347 additions and 349 deletions.
4 changes: 4 additions & 0 deletions packages/github/RELEASES.md
@@ -1,5 +1,9 @@
# @actions/github Releases

### 6.0.0
- Support the latest Octokit in @actions/github [#1553](https://github.com/actions/toolkit/pull/1553)
- Drop support of NodeJS v14, v16

### 5.1.1
- Export default octokit options [#1188](https://github.com/actions/toolkit/pull/1188)

Expand Down
4 changes: 2 additions & 2 deletions packages/github/__tests__/github.proxy.test.ts
@@ -1,6 +1,6 @@
import * as http from 'http'
import * as https from 'https'
import proxy from 'proxy'
import {createProxy} from 'proxy'

// Default values are set when the module is imported, so we need to set proxy first.
const proxyUrl = 'http://127.0.0.1:8081'
Expand All @@ -16,7 +16,7 @@ describe('@actions/github', () => {

beforeAll(async () => {
// Start proxy server
proxyServer = proxy()
proxyServer = createProxy()
await new Promise<void>(resolve => {
const port = Number(proxyUrl.split(':')[2])
proxyServer.listen(port, () => resolve())
Expand Down
4 changes: 2 additions & 2 deletions packages/github/__tests__/github.test.ts
@@ -1,5 +1,5 @@
import * as http from 'http'
import proxy from 'proxy'
import {createProxy} from 'proxy'
import {getOctokit} from '../src/github'
import {GitHub, getOctokitOptions} from '../src/utils'

Expand All @@ -12,7 +12,7 @@ describe('@actions/github', () => {

beforeAll(async () => {
// Start proxy server
proxyServer = proxy()
proxyServer = createProxy()
await new Promise<void>(resolve => {
const port = Number(proxyUrl.split(':')[2])
proxyServer.listen(port, () => resolve())
Expand Down
5 changes: 0 additions & 5 deletions packages/github/__tests__/proxy.d.ts

This file was deleted.

0 comments on commit 494f12b

Please sign in to comment.