-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: Make it a probot app ✨ #96
base: master
Are you sure you want to change the base?
Conversation
expect(actualSuccessStatus).toMatchObject(successStatusBody); | ||
}); | ||
|
||
test('POST /webhook should add a failure status to the PR if it doesn’t pass the users rules', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ewolfe Can you please verify the accuracy of this test? Basically, ensure that the previous functionality is not lost?
Should be good to go now. I copied existing logic into |
@mrchief I probably won't get to spend anytime on this today. But I'll outline steps in case you want to get a jumpstart on testing it:
|
@ewolfe Sounds like a plan. Will keep you posted. |
Tried creating a now deployment but things weren't going well. After banging my head in frustration, I found this: probot/probot.github.io#273 now doesn't let you create v1 deployments anymore. I created a v2 now.json
but it seems like we need that wrapper for things to work properly. Looks like Probot docs would need an update too. Will continue looking into this... |
Oh no! That sounds like it was probably really frustrating. I can help investigate over the weekend too. |
You bet! 3 hours of head-banging fun! I also tried the serverless-lambda but that resulted in |
I tried with AWS lambda and here's what I found:
So based on these, I think we can do one of these:
Thoughts? |
@ewolfe Did you get a chance to look at it yet? |
@ewolfe Any update on this? I can merge this but I don't have access to the deployment service (now.sh I believe?). If you can add me there, then I can test and get this version uploaded. |
@mrchief sorry for the delay. Yeah let's get this wrapped up! Can you signup with this URL https://zeit.co/teams/invite/qDB2l5r6 and then try deploying to https://prlint-staging.now.sh/ ? |
Great! I signed up but I wasn't able to install Now on prlint (complains that I'm not an owner which is weird). I'll try later via the cli. I'll ping you on spectrum if needed. Don't want to bog down this PR thread with side chatter. |
@mrchief can you try installing it on https://github.com/prlint/prlint-staging ? I want to move this repo over to https://github.com/prlint/prlint as part of this whole update as well |
I believe that is where I tried. But I'll check again tonight. |
Was able to sort thru issues. Did a test deployment at https://prlint-staging.mrchief.now.sh/ so I know integration etc. is now all setup correctly. I'm going to start cleaning up this PR now. |
Fixes #85