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

Also check mergeable_state to identify draft pull requests #108

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

foolip
Copy link
Member

@foolip foolip commented Oct 25, 2019

This field can currently be observed here:
https://api.github.com/repos/web-platform-tests/wpt/pulls/19806

There's no stability guarantee here, it's a quickfix.

Fixes #69.

This field can currently be observed here:
https://api.github.com/repos/web-platform-tests/wpt/pulls/19806

There's no stability guarantee here, it's a quickfix.

Fixes #69.
@foolip foolip requested a review from jugglinmike October 25, 2019 09:30
@@ -21,7 +21,11 @@ function filterPullRequest(pull_request, log) {
log(`Ignoring #${pull_request.number}: pull request is closed`);
return false;
}
if (pull_request.draft) {
// Note: the `draft` boolean is a preview API which we don't enable:
Copy link
Member Author

Choose a reason for hiding this comment

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

The reasoning for keeping this even though it doesn't work now is that it'll start working by default soon enough. If mergeable_state goes away after that this won't break. It might still break before then of course, but quickfix :)

Copy link
Member

@zcorpan zcorpan left a comment

Choose a reason for hiding this comment

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

Looks ok, but would be good to have @jugglinmike take a look also

Copy link
Contributor

@jugglinmike jugglinmike left a comment

Choose a reason for hiding this comment

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

If either of you have the bandwidth to deploy this, then be my guest. Otherwise, I'll try to get to it on Monday.

@zcorpan zcorpan self-assigned this Oct 28, 2019
@zcorpan
Copy link
Member

zcorpan commented Oct 28, 2019

I'll merge and test this now.

@zcorpan
Copy link
Member

zcorpan commented Oct 28, 2019

This is deployed, tested in web-platform-tests/wpt#19959 - it seems to work. Leaving that draft PR open for now if you want to test something more.

@foolip foolip deleted the foolip/mergeable_state branch October 28, 2019 22:39
@foolip
Copy link
Member Author

foolip commented Oct 28, 2019

Seems to work, finally :)

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.

Do nothing with draft PRs
3 participants