# Merge with when condition

**URL:** <https://drone.discourse.group/t/merge-with-when-condition/8358>\
**Category:** Drone Support\
**Created:** [October 19, 2017, 12:58am UTC](https://drone.discourse.group/t/merge-with-when-condition/8358 "2017-10-19T00:58:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozbillwang](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ozbillwang/32/3947_2.png) [@ozbillwang](https://drone.discourse.group/u/ozbillwang)\
**Post date:** [October 19, 2017, 12:58am UTC](https://drone.discourse.group/t/merge-with-when-condition/8358/1 "2017-10-19T00:58:16Z")

</div>

### UPDATES:

Fake error, the reason why I don’t get it run, because I create a branch name which is not started by `feature`

### The question

I set a pipeline step with when condition:

```
when:
  branch: [master, feature/*]
  event: [push, pull_request, tag]

```

I found when the merge is approved and codes were merged to master branch. It triggers a build. But above step with this when condition is skipped and not run by drone pipeline.
