fix: Fix async main function type by kammerjaeger · Pull Request #1672 · probot/probot · GitHub
Skip to content

fix: Fix async main function type - #1672

Merged
AaronDewes merged 2 commits into
probot:masterfrom
kammerjaeger:patch-1
Nov 14, 2023
Merged

AaronDewes merged 2 commits into
probot:masterfrom
kammerjaeger:patch-1

Conversation

@kammerjaeger

Copy link
Copy Markdown
Contributor

This should better reflect the already allowed async function as main function in a probot app.

Let me know what you think.

This should better reflect the already allowed async function as main
@kammerjaeger
kammerjaeger requested a review from a team as a code owner April 6, 2022 18:55
@kammerjaeger kammerjaeger changed the title fix: Allow async main function fix: Fix async main function type Apr 7, 2022
@kammerjaeger

Copy link
Copy Markdown
Contributor Author

@Uzlopak

Uzlopak commented Nov 13, 2023

Copy link
Copy Markdown
Collaborator

It seems correct:

await appFn(this.probotApp, {

@gr2m
@AaronDewes
target beta and merge?

@gr2m

gr2m commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

@gr2m @AaronDewes target beta and merge?

Why target beta? We do support it in current Probot, or am I missing something?

await appFn(this.probotApp, {
getRouter: (path) => this.router(path),
});

@Uzlopak

Uzlopak commented Nov 14, 2023

Copy link
Copy Markdown
Collaborator

@gr2m

Yes, main is valid target.

@AaronDewes

Copy link
Copy Markdown
Member

image

@gr2m I can't merge this either, but I don't see any reason not to merge it.

@AaronDewes AaronDewes mentioned this pull request Nov 14, 2023
@AaronDewes
AaronDewes merged commit fc6886d into probot:master Nov 14, 2023
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 12.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants