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: Make probot receive support complex Probot apps #1714

Merged
merged 2 commits into from
Sep 5, 2022
Merged

fix: Make probot receive support complex Probot apps #1714

merged 2 commits into from
Sep 5, 2022

Conversation

moltenice
Copy link
Contributor

@moltenice moltenice commented Aug 2, 2022

The command probot receive fails to work when:

  1. The Probot appFn is asynchronous
  2. The Probot appFn requires getRouter

The command probot run works fine though with the same Probot appFn.

This attempts to add support for these sorts of Probot apps when calling probot receive.

The command `probot receive` fails to work when:

1. The Probot appFn is asynchronous
2. The Probot appFn requires `getRouter`

The command `probot run` works fine though with the same app.

This attempts to add support for these sort of Probot apps when calling `probot receive`.
@moltenice moltenice marked this pull request as ready for review August 2, 2022 11:14
@moltenice moltenice requested a review from a team as a code owner August 2, 2022 11:14
@moltenice moltenice changed the title Probot Receive support complex Probot apps fix: Probot Receive support complex Probot apps Aug 2, 2022
Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add a test to make sure we don't break this in future?

@moltenice
Copy link
Contributor Author

could you add a test to make sure we don't break this in future?

Thanks for reviewing @gr2m

Do you have a recommendation on how I'd go about testing this? I didn't see an existing test file for probot-receive.ts. Creating one from scratch might be tough as I don't know this file too well or how to test a commander powered script.

@moltenice moltenice changed the title fix: Probot Receive support complex Probot apps fix: Make probot receive support complex Probot apps Aug 3, 2022
@moltenice moltenice requested a review from gr2m September 1, 2022 14:51
Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry on the wait!

@gr2m gr2m merged commit eff5553 into probot:master Sep 5, 2022
@github-actions
Copy link

github-actions bot commented Sep 5, 2022

🎉 This PR is included in version 12.2.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

@moltenice
Copy link
Contributor Author

sorry on the wait!

Oh my what a pleasant surprise when I came back from Holiday! 🎉

We're looking forward to using this in our project 😄

@moltenice moltenice deleted the probot-receive-improvements branch October 10, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants