How to disable Travis CI pipeline for draft or WIP pull requests on GitHub?

241 Views Asked by At

I would like to avoid overwhelming the build. Has anybody done it before?

1

There are 1 best solutions below

2
On

There is a feature called conditional builds. You can match against function results, regexes, attributes in lists .. and so on.

See here: https://docs.travis-ci.com/user/conditional-builds-stages-jobs and here: https://docs.travis-ci.com/user/conditions-v1