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

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

Below is the drone.yml I am using.

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
1 Like

@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

Regards,
Harness support

1 Like

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

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