Travis CI added draft pull requests support

twitter logo github logo ・1 min read

About 3 months ago I noticed that Github drafts are not triggering Travis CI builds, not even when the draft flag gets removed.

#

Glennmen avatar
Glennmen commented on Mar 20, 2019

Strange, Travis doesn't get triggered if Draft has been removed.


Update: I made a ticket about it on Travis CI Community: https://travis-ci.community/t/removing-draft-doesnt-trigger-travis/2715

I made a ticket about this on the Travis forum, the workaround suggested at the time was closing and reopening the PR.

Now today (24/06) Travis CI added support for building draft PR's, not only when they are marked ready for review.

This should improve the quality of the PR's as testing can be done in draft PR's and marked ready for review when all tests pass.

What do you think about this update? Do you use draft PR's or rather add [WIP] in the PR title.

twitter logo DISCUSS (4)
markdown guide
 

I use WIP bot wherever possible, never touched draft PRs. I much prefer the simplicity of having “🚧” at the start of the title and then the pending bot check over the draft PR UI.

 

But there are benefits that draft PRs have that WIP bot can't provide.

  • There are multiple visible indicators that it is a draft PR, WIP is limited in this.
  • Draft PRs can't be merged, WIP bot can't block merges.
  • If you have a CODEOWNERS file in your repository, a draft pull request will suppress notifications to those reviewers until it is marked as ready for review.
 

There are multiple visible indicators that it is a draft PR, WIP is limited in this.

I honestly prefer having the single indicator of the 🚧 emoji in the title.

Draft PRs can't be merged, WIP bot can't block merges.

It can... have branch protection rules in place that require all checks to pass :)

If you have a CODEOWNERS file in your repository, a draft pull request will suppress notifications to those reviewers until it is marked as ready for review.

Never personally worked on a project with code owners, either manually requested views or had a bot that requests reviews once all checks pass.

 

Oh this is great news! Thanks for sharing this.

Classic DEV Post from Jun 18

My React stack for 2019

Since several people recently asked me to share my ideal React stack, I decided to write it down and share it also with you.

Glenn Carremans profile image
Native Android developer/Consultant for Appwise, I work on custom projects for clients. PHP/JS (web) developer in my freetime. Trying to keep learning in an ever changing tech world.

dev.to is where software developers stay in the loop and avoid career stagnation.

Sign up (it's free!)