Skip to content
New issue

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

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

Already on GitHub? # to your account

Upgrade dependencies and rebuild #38

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

danny-goldberg-rally
Copy link

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.

@@ -83,7 +83,7 @@ typings/
.nuxt

# rollup.js default build output
dist/
# dist/

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'. */

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';

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> {

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({

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 to octokit.repos.createCommitStatus()

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant