From 6f5c4eaf75fb1e0b6fd13341fccdfa5df151c974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Fri, 12 Apr 2024 11:24:09 +0200 Subject: [PATCH] fix(github): use the new inflight interface modifier --- github/octokit/types.w | 4 ++-- github/package-lock.json | 4 ++-- github/package.json | 2 +- github/probot/adapter.w | 4 ++-- github/probot/types.w | 4 ++-- github/simutils/simutils.w | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/github/octokit/types.w b/github/octokit/types.w index 8240974c..a0b26386 100644 --- a/github/octokit/types.w +++ b/github/octokit/types.w @@ -290,7 +290,7 @@ struct ListForOrgProps { org: str; } -interface OctoKitRepos { +inflight interface OctoKitRepos { inflight getContent(options: GetContentProps): GetContentResponse; inflight getCommit(options: GetCommitProps): GetCommitResponse; inflight compareCommits(options: CompareCommitsProps): CompareCommitsResponse; @@ -308,4 +308,4 @@ pub struct OctoKit { git: OctoKitGit; issues: OctoKitIssues; repos: OctoKitRepos; -} \ No newline at end of file +} diff --git a/github/package-lock.json b/github/package-lock.json index 6cb15347..6d0cee3f 100644 --- a/github/package-lock.json +++ b/github/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/github", - "version": "0.0.8", + "version": "0.0.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/github", - "version": "0.0.8", + "version": "0.0.9", "license": "MIT", "peerDependencies": { "@probot/adapter-aws-lambda-serverless": "^3.0.4", diff --git a/github/package.json b/github/package.json index 7934a484..d297e45d 100644 --- a/github/package.json +++ b/github/package.json @@ -1,7 +1,7 @@ { "name": "@winglibs/github", "description": "A Wing library for GitHub Probot", - "version": "0.0.8", + "version": "0.0.9", "author": { "name": "Elad Cohen", "email": "eladc@wing.cloud" diff --git a/github/probot/adapter.w b/github/probot/adapter.w index c1d3e207..9e89acd8 100644 --- a/github/probot/adapter.w +++ b/github/probot/adapter.w @@ -1,7 +1,7 @@ bring "../octokit/types.w" as octokit; bring "./types.w" as probot; -pub interface IProbotAppCredentialsSupplier { +pub inflight interface IProbotAppCredentialsSupplier { inflight getId(): str; inflight getWebhookSecret(): str; inflight getPrivateKey(): str; @@ -31,7 +31,7 @@ pub class ProbotAdapter { inflight new() { this.instance = ProbotAdapter.createProbotAdapter( appId: this.credentialsSupplier.getId(), - privateKey: this.credentialsSupplier.getPrivateKey(), + privateKey: this.credentialsSupplier.getPrivateKey(), webhookSecret: this.credentialsSupplier.getWebhookSecret() ); } diff --git a/github/probot/types.w b/github/probot/types.w index ea588f1b..ab2fe3d7 100644 --- a/github/probot/types.w +++ b/github/probot/types.w @@ -71,12 +71,12 @@ pub struct VerifyAndReceieveProps { payload: str; } -pub interface IProbotWebhooks { +pub inflight interface IProbotWebhooks { inflight on(name: str, handler: inflight (): void): void; inflight verifyAndReceive(props: VerifyAndReceieveProps): void; } -pub interface IProbotAuth { +pub inflight interface IProbotAuth { inflight call(instance: ProbotInstance, installationId: num): octokit.OctoKit; } diff --git a/github/simutils/simutils.w b/github/simutils/simutils.w index 243cecdc..a8677749 100644 --- a/github/simutils/simutils.w +++ b/github/simutils/simutils.w @@ -2,7 +2,7 @@ bring cloud; bring util; bring sim; -pub interface Process { +pub inflight interface Process { inflight kill(): void; } @@ -50,4 +50,4 @@ pub class Port { }); } extern "./simutils.js" static inflight findPort(): num; -} \ No newline at end of file +}