# Is there any way that drone can trigger on pr request creation before approval/merging?

**URL:** <https://drone.discourse.group/t/is-there-any-way-that-drone-can-trigger-on-pr-request-creation-before-approval-merging/8599>\
**Category:** Drone Support\
**Created:** [April 13, 2021, 12:39am UTC](https://drone.discourse.group/t/is-there-any-way-that-drone-can-trigger-on-pr-request-creation-before-approval-merging/8599 "2021-04-13T00:39:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![geeek](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@geeek](https://drone.discourse.group/u/geeek)\
**Post date:** [April 13, 2021, 12:39am UTC](https://drone.discourse.group/t/is-there-any-way-that-drone-can-trigger-on-pr-request-creation-before-approval-merging/8599/1 "2021-04-13T00:39:30Z")

</div>

Is there any way that drone can trigger on pr request creation before approval/merging?

Below is the drone.yml I am using.

```auto
kind: pipeline
name: production deployment
steps:
  - name: setup/install
    image: node:14.16.0
    commands:
      - yarn install --silent
  - name: build
    image: node:14.16.0
    commands:
      - cd app
      - rm -rf build
      - yarn run build
      - ls build
trigger:
  branch:
    - master

```

---

<div class="post-metadata">

**Author:** ![csgitharness](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/csgitharness/32/904_2.png) [@csgitharness](https://drone.discourse.group/u/csgitharness)\
**Post date:** [April 15, 2021, 11:58am UTC](https://drone.discourse.group/t/is-there-any-way-that-drone-can-trigger-on-pr-request-creation-before-approval-merging/8599/2 "2021-04-15T11:58:43Z")

</div>

@geeek,

Could you please try using - pull\_request as event under trigger

trigger:  
event:

- pull\_request

As mentioned in doc:  
[https://docs.drone.io/pipeline/triggers/#by-event](https://docs.drone.io/pipeline/triggers/#by-event)

Regards,  
Harness support

---

<div class="post-metadata">

**Author:** ![geeek](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@geeek](https://drone.discourse.group/u/geeek)\
**Post date:** [April 18, 2021, 11:45am UTC](https://drone.discourse.group/t/is-there-any-way-that-drone-can-trigger-on-pr-request-creation-before-approval-merging/8599/4 "2021-04-18T11:45:33Z")

</div>

Doesn’t work I tried. Just to be sure the pull request event is dependent on the destination branch right.

---

<div class="post-metadata">

**Author:** ![bagginstyrone](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bagginstyrone/32/3282_2.png) [@bagginstyrone](https://drone.discourse.group/u/bagginstyrone)\
**Post date:** [April 21, 2021, 6:46am UTC](https://drone.discourse.group/t/is-there-any-way-that-drone-can-trigger-on-pr-request-creation-before-approval-merging/8599/5 "2021-04-21T06:46:42Z")

</div>

@geeek This will only work with trigger. Try to pull the trigger on your way. It will work .
