Github introduced a feature to mark PRs as drafts that I’d like to highlight.
This feels to me like a proper implementation of the [WIP] pattern since you can filter these in search with is:draft or to exclude them -is:draft.
[WIP]
is:draft
-is:draft
Sadly hub lacks support because the Github API doesn’t expose this functionality. There is a workaround that uses the browser.
My experience is that Travis doesn’t run on drafts, but Jenkins does.
Can we change jenkins to not run tests on draft prs?
Or perhaps setting the flag if [WIP] is seen? The hub missing feature is a pity.
hub
We can’t set that flag. It’s something the contributor must do. It’s also not possible to go from Open to Draft. The state diagram is rougly Draft -> Open ->(Merged|Closed -> Open) where both Draft and Open are start states.
Draft -> Open ->(Merged|Closed -> Open)