Skip to content
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

fix(github): use the new inflight interface modifier #198

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions github/octokit/types.w
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -308,4 +308,4 @@ pub struct OctoKit {
git: OctoKitGit;
issues: OctoKitIssues;
repos: OctoKitRepos;
}
}
4 changes: 2 additions & 2 deletions github/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion github/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions github/probot/adapter.w
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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()
);
}
Expand Down
4 changes: 2 additions & 2 deletions github/probot/types.w
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions github/simutils/simutils.w
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ bring cloud;
bring util;
bring sim;

pub interface Process {
pub inflight interface Process {
inflight kill(): void;
}

Expand Down Expand Up @@ -50,4 +50,4 @@ pub class Port {
});
}
extern "./simutils.js" static inflight findPort(): num;
}
}
Loading