-
Notifications
You must be signed in to change notification settings - Fork 33
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
Upgrade dependencies and rebuild #38
base: master
Are you sure you want to change the base?
Upgrade dependencies and rebuild #38
Conversation
@@ -83,7 +83,7 @@ typings/ | |||
.nuxt | |||
|
|||
# rollup.js default build output | |||
dist/ | |||
# dist/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dist is important to be able to update since the action runs dist/index.js
@@ -2,7 +2,7 @@ | |||
"compilerOptions": { | |||
/* Basic Options */ | |||
// "incremental": true, /* Enable incremental compilation */ | |||
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ | |||
"target": "esNEXT", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might as well go with latest to keep it current?
@@ -1,16 +1,17 @@ | |||
import { GitHub } from '@actions/github'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was no longer accessible, but RestEndpointMethods
from octokit seemed to work
async get_pull_request(pr_number: number): Promise<Octokit.PullsGetResponse> { | ||
const getPrResponse = await this.restClient.pulls.get({ | ||
// TODO: make this strongly typed | ||
async get_pull_request(pr_number: number): Promise<any> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had trouble actually finding what the up-to-date type is for this, but it does work as any
@@ -77,7 +79,7 @@ export class GitHubClientWrapper implements GitHubClient{ | |||
async set_pull_request_status(pr_number: number, new_status: "error" | "failure" | "pending" | "success"): Promise<void> { | |||
const pullRequestData = await this.get_pull_request(pr_number); | |||
|
|||
const statusResponse = await this.restClient.repos.createStatus({ | |||
const statusResponse = await this.restClient.repos.createCommitStatus({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://openbase.com/js/@octokit/rest/versions, 18.0.0
octokit.repos.createStatus()
has been renamed tooctokit.repos.createCommitStatus()
Heya! I wanted to play with this locally and check it out, but I couldn't actually compile it until I fiddled with it.
I ended up upgrading all the things.