-
Notifications
You must be signed in to change notification settings - Fork 140
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: upgrade MOG to Probot 10 #988
Conversation
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.
Left a few notes, and it might be good for us to publish the real version of the library later today.
But this is looking great.
@@ -857,7 +851,7 @@ describe('merge-on-green', () => { | |||
)); | |||
|
|||
await probot.receive({ | |||
name: 'pull_request.labeled', | |||
name: 'pull_request.labeled' as any, |
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.
I opened an issue related to this, and it seems like we should be able to work around the issue like this:
So I think hopefully the only actual issue is the repository.scheduled
.
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.
Left a nit, it would be good to use the new logging approach. Doesn't need to be a blocker as long as we come back to this eventually
@@ -395,6 +397,7 @@ function cleanReviews(reviewsCompleted: Reviews[]): Reviews[] { | |||
} | |||
} | |||
} | |||
console.log(cleanReviews); |
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.
nit: I think we could use @azizsonawalla's logger here
import {logger} from 'gcf-utils';
☝️ at the top.
logger.error(e);
logger.info('foo')
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.
oops, that was a testing remnant. I can fix that, thanks!
No description provided.