CircleCI Ideas

Add support for GitHub Draft PRs

GitHub released Draft PRs

 

https://twitter.com/github/status/1096093162345508864

 

We have users requesting we add support to not run against branches without a Draft PR, creating this feature request to gauge interest and inform prioritization

Here is the direct customer request:
```
It would be nice to have the option to run CI only on PRs which are not draft PRs, as they are intended as work in progress and ae likely to be in a broken state which is expected. The option to force trigger a build on such requests with an API call will be nice to so that developers can develop their own integrations like running CI on a comment in such a PR. And CI should be triggered as soon as the PR is marked as ready for review (not a draft anymore).

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Feb 14 2019
  • Taking votes
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    17 Jun 03:38am

    +1

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    13 May 03:35pm

    This is a great way to allow people to collaborate on review, evolve code, without slowing down the build pipeline.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    7 May 11:33am

    yes, please.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    28 Feb 11:28am

    +1

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    9 Jan 10:03am

    +1

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    12 Dec, 2019 04:13pm

    We need this!

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    4 Dec, 2019 08:19am

    This request makes perfect sense since the introduction of Draft PR's on GitHub. Our team would benefit greatly from this feature.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    13 Nov, 2019 12:24am

    My team's core need is to know when Circle is being invoked because of a draft pull request; we can `exit 0` as needed and therefore don't need a new workflow-job trigger just for draft PRs.

     

    Of course, if we had a workflow-job trigger condition, that would be even niftier. But we can do without, given an environment variable.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    23 Sep, 2019 08:06pm

    +1

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    13 Aug, 2019 02:59pm

    Any progress on this?

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    6 Aug, 2019 01:58pm

    Anyone knows something about this support?

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    1 Jul, 2019 04:50am

    Would love to have this feature as well.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    16 Jun, 2019 12:58pm

    Has there been progress made on this? Would love to have it

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    12 May, 2019 08:45am

    This would be a fantastic addition, you have my vote

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    30 Apr, 2019 01:11pm

    It would be good to filter certain tests against draft vs non-draft PRs. E.g. you might want to run unit tests on it, but not heavier weight integration (etc) tests.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    20 Mar, 2019 03:00pm

    We need this too 👍

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    15 Feb, 2019 12:23am

    Thanks, I've updated the request to reflect the clarification.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    14 Feb, 2019 11:54pm

    Small correction - it would be nice to have option to run CI only on PRs which are not draft PRs, as they are intended as work in progress and ae likely to be in a broken state which is expected. Option to force trigger build on such requests with API call will be noce to so that developers can develop their own integratoons like running CI on comment in such PR. And CI should be triggereed as oon as PR is marked as ready for review (not a draft any more). Thanks!