pull_request event doesn't seem to be fired when evaluating workflows #11221

Closed
opened 2025-11-02 09:31:12 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @DoodlesOnMyFood on GitHub (Jul 13, 2023).

Description

I'm trying out gitea actions, and it works great for the most part.

But I noticed that events that start with pull_request don't seem to trigger my workflows.

For example,

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push, issues, pull_request, pull_request_comment, pull_request_review, pull_request_review_comment]

jobs:
  Explore-Gitea-Actions:
    runs-on: ubuntu-latest
    steps:
      - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
      - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
      - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
      - name: Check out repository code
        uses: actions/checkout@v3
      - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
      - run: echo "🖥️ The workflow is now ready to test your code on the runner."
      - name: List files in the repository
        run: ls ${{ gitea.workspace }}
      - run: echo "🍏 This job's status is ${{ job.status }}."

For pushes and issues, the workflow is triggered. Everything else, not so much.

2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "add-reviewers.yaml" for event &jobparser.Event{Name:"pull_request_target", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues"
2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"push", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues"
2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"issues", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues"
2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"pull_request", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues"
2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"pull_request_comment", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues"
2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"pull_request_review", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues"
2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"pull_request_review_comment", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues"

From what I can tell I can only observe these logs for pushes and issues. I haven't tested for other types of events.

Gitea Version

1.19.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Kubernetes helm chart

Database

PostgreSQL

Originally created by @DoodlesOnMyFood on GitHub (Jul 13, 2023). ### Description I'm trying out gitea actions, and it works great for the most part. But I noticed that events that start with pull_request don't seem to trigger my workflows. For example, ``` name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [push, issues, pull_request, pull_request_comment, pull_request_review, pull_request_review_comment] jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Check out repository code uses: actions/checkout@v3 - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository run: ls ${{ gitea.workspace }} - run: echo "🍏 This job's status is ${{ job.status }}." ``` For pushes and issues, the workflow is triggered. Everything else, not so much. ``` 2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "add-reviewers.yaml" for event &jobparser.Event{Name:"pull_request_target", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues" 2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"push", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues" 2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"issues", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues" 2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"pull_request", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues" 2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"pull_request_comment", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues" 2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"pull_request_review", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues" 2023/07/13 08:23:26 ...actions/workflows.go:86:DetectWorkflows() [T] detect workflow "example.yaml" for event &jobparser.Event{Name:"pull_request_review_comment", acts:map[string][]string(nil), schedules:[]map[string]string(nil)} matching "issues" ``` From what I can tell I can only observe these logs for pushes and issues. I haven't tested for other types of events. ### Gitea Version 1.19.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Kubernetes helm chart ### Database PostgreSQL
GiteaMirror added the topic/gitea-actionstype/bug labels 2025-11-02 09:31:12 -06:00
Author
Owner

@wolfogre commented on GitHub (Jul 14, 2023):

@Zettat123 Do you have any time to take a look?

@wolfogre commented on GitHub (Jul 14, 2023): @Zettat123 Do you have any time to take a look?
Author
Owner

@Zettat123 commented on GitHub (Jul 14, 2023):

Hi @DoodlesOnMyFood , I can't reproduce the bug as all events work fine in my test. Could you provide any steps on how to reproduce the bug?

@Zettat123 commented on GitHub (Jul 14, 2023): Hi @DoodlesOnMyFood , I can't reproduce the bug as all events work fine in my test. Could you provide any steps on how to reproduce the bug?
Author
Owner

@DoodlesOnMyFood commented on GitHub (Jul 14, 2023):

@Zettat123 I'm sorry, I can't. I restarted the gitea instance and discarded the existing runner instances for new ones this morning and now pull_request works. I guess I'll close this issue.

@DoodlesOnMyFood commented on GitHub (Jul 14, 2023): @Zettat123 I'm sorry, I can't. I restarted the gitea instance and discarded the existing runner instances for new ones this morning and now pull_request works. I guess I'll close this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11221