-
Notifications
You must be signed in to change notification settings - Fork 36
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
Conversation
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.
@@ -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: |
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.
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 :)
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.
Looks ok, but would be good to have @jugglinmike take a look also
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.
If either of you have the bandwidth to deploy this, then be my guest. Otherwise, I'll try to get to it on Monday.
I'll merge and test this now. |
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. |
Seems to work, finally :) |
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.