# Issues with drone triggers

**URL:** https://drone.discourse.group/t/issues-with-drone-triggers/12355
**Category:** Drone Support
**Tags:** basic
**Created:** [August 2, 2022, 3:02pm UTC](https://drone.discourse.group/t/issues-with-drone-triggers/12355 "2022-08-02T15:02:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zFlxw](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/zflxw/32/7829_2.png) [@zFlxw](https://drone.discourse.group/u/zFlxw)
#### Post date: [August 2, 2022, 3:02pm UTC](https://drone.discourse.group/t/issues-with-drone-triggers/12355/1 "2022-08-02T15:02:55Z")

</div>

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:

```auto
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

```

---

<div class="post-metadata">

### Author: ![zFlxw](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/zflxw/32/7829_2.png) [@zFlxw](https://drone.discourse.group/u/zFlxw)
#### Post date: [August 2, 2022, 3:04pm UTC](https://drone.discourse.group/t/issues-with-drone-triggers/12355/2 "2022-08-02T15:04:23Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Krishika\_Singh](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/krishika_singh/32/7776_2.png) [@Krishika\_Singh](https://drone.discourse.group/u/Krishika_Singh)
#### Post date: [August 2, 2022, 6:46pm UTC](https://drone.discourse.group/t/issues-with-drone-triggers/12355/4 "2022-08-02T18:46:58Z")

</div>

[https://0-8-0.docs.drone.io/install-for-gitea/](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 .

---

<div class="post-metadata">

### Author: ![Krishika\_Singh](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/krishika_singh/32/7776_2.png) [@Krishika\_Singh](https://drone.discourse.group/u/Krishika_Singh)
#### Post date: [August 2, 2022, 6:52pm UTC](https://drone.discourse.group/t/issues-with-drone-triggers/12355/5 "2022-08-02T18:52:05Z")

</div>

> [@Nothing happens when I push code, webhooks not working, no builds, or builds stuck in pending](https://drone.discourse.group/t/nothing-happens-when-i-push-code-webhooks-not-working-no-builds-or-builds-stuck-in-pending/11522):
>
> When you push code to your repository (in GitHub) the expected behavior is that your build pipeline will execute. This guide will help you troubleshoot the scenario where you push code and nothing happens in Drone. First you should enable debug mode by setting the DRONE\_LOGS\_DEBUG=true environment variable and passing this to your Drone server. Did your version control system trigger the webhook? When you push code to your source code management system (e.g. GitHub) it will send a webhook to D…

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