# \[RESOLVED\] Build.pull\_request.draft conditional IF is not working

**URL:** <https://forum.buildkite.community/t/resolved-build-pull-request-draft-conditional-if-is-not-working/1193>\
**Category:** General\
**Created:** [August 19, 2020, 8:31am UTC](https://forum.buildkite.community/t/resolved-build-pull-request-draft-conditional-if-is-not-working/1193 "2020-08-19T08:31:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![runlevel5](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/runlevel5/32/854_2.png) [@runlevel5](https://forum.buildkite.community/u/runlevel5)\
**Post date:** [August 19, 2020, 8:31am UTC](https://forum.buildkite.community/t/resolved-build-pull-request-draft-conditional-if-is-not-working/1193/1 "2020-08-19T08:31:58Z")

</div>

### Context:

I have a pipeline which hook to my private GitHub repo:

```auto
steps:
  - label: "Compile app"
    if: !build.pull_request.draft
    commands: "make -j128"

```

### Expected:

Trigger new build for only non-draft GitHub PR

### Actual

Trigger new build for draft and non-draft Github PR

---

<div class="post-metadata">

**Author:** ![runlevel5](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/runlevel5/32/854_2.png) [@runlevel5](https://forum.buildkite.community/u/runlevel5)\
**Post date:** [August 20, 2020, 1:32am UTC](https://forum.buildkite.community/t/resolved-build-pull-request-draft-conditional-if-is-not-working/1193/2 "2020-08-20T01:32:42Z")

</div>

It turns out it is totally my fault.

@sj26 has helped me resolve this issue by suggesting wrapping the `if` value in double-quotes, that is:

```auto
steps:
  - label: "Compile app"
    if: "!build.pull_request.draft"
    commands: "make -j128"

```
