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

Make package compatible with probot v10 #46

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

scolandrea
Copy link
Contributor

@scolandrea scolandrea commented Sep 16, 2020

PR adds compatibility with probot v10.

Credits on @soberstadt

resolves #43

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.

Looks good 👍🏼 Did you have a chance to test if it still works /cc @soberstadt

const { findPrivateKey } = require('probot/lib/private-key')
const { Probot } = require('probot')
const { resolve } = require('probot/lib/helpers/resolve-app-function')
const { findPrivateKey } = require('probot/lib/helpers/get-private-key')
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not happy that we use internal APIs, I'll see if we can make these methods official exports at the root level so things won't break if Probot's internal file structure changes.

@scolandrea
Copy link
Contributor Author

I'm trying to test it on AWS but I'm dealing with a problem with my account. Hopefully I will be able to test it over the weekend :)

@soberstadt
Copy link

I tested this on my probot and it worked 🎉
image

@scolandrea
Copy link
Contributor Author

Awesome!! Glad to hear that!

@gr2m
Copy link
Contributor

gr2m commented Sep 17, 2020

Sweet, thank you for checking!

@gr2m gr2m merged commit 345b245 into probot:master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Probot v10
3 participants