Issues with drone triggers

Hey there!

I want to run gradle test every time a pull request gets opened or synchronized (I am using Gitea v1.17). But the task does not trigger when opening or synchronizing a pull request. My .drone.yml looks like this:

kind: pipeline
type: docker
name: test
trigger:
  event: pull_request
  action:
  - opened
  - synchronized
steps:
  - name: clean test
    image: gradle:7.5.0-jdk17-alpine
    environment:
      - some env variables here
    commands:
      - gradle clean
      - gradle test --stacktrace

Just to mention here: It didn’t work when I omitted the “action” section.

https://0-8-0.docs.drone.io/install-for-gitea/
Please check if above doc can help , let us know if you face any issue .

Please check the above link if it can help , let us know if you face any issues .