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: upgrade MOG to Probot 10 #988

Merged
merged 12 commits into from
Oct 1, 2020
Merged

fix: upgrade MOG to Probot 10 #988

merged 12 commits into from
Oct 1, 2020

Conversation

sofisl
Copy link
Contributor

@sofisl sofisl commented Sep 30, 2020

No description provided.

@sofisl sofisl requested review from bcoe, JustinBeckwith and a team September 30, 2020 08:15
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 30, 2020
Copy link
Contributor

@bcoe bcoe left a 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,
Copy link
Contributor

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:

probot/probot#1367 (comment)

So I think hopefully the only actual issue is the repository.scheduled.

@sofisl sofisl requested a review from bcoe September 30, 2020 20:24
Copy link
Contributor

@bcoe bcoe left a 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);
Copy link
Contributor

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')

Copy link
Contributor Author

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!

@sofisl sofisl merged commit f8ec4c5 into googleapis:master Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants