Pull request workflow not triggered

Hi,

After some successful runs/checks, my following workflow is no longer triggered when there is a pull request activity. How can I debug that?

name: Pull requests
on: [issues, pull_request]

jobs:
  check_pr:
    runs-on: ubuntu-latest
    steps:
      - name: Milestone
        uses: zengularity/pr-milestone-checker@ghaction-1.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - name: Naming
        uses: zengularity/probot-pr-naming@ghaction-1.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - name: Status labels
        uses: cchantep/probot-pr-status-label@ghaction-1.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 Like

Define “pull request activity”? Note that by default only these kinds of activity should trigger the workflow:

Note:  By default, a workflow only runs when a pull_request’s activity type is opened, synchronize, or reopened. To trigger workflows for more activity types, use the types keyword.

More details on the types can be found here: https://help.github.com/en/articles/events-that-trigger-workflows#pull-request-event-pull_request

So, for example a comment on a PR does not trigger anything. Closing a PR does not trigger anything. They CAN trigger something, but you will have to make your workflows more specific in that case.

I just noticed that one of my workflows also didn’t trigger upon opening a new PR, so there might be a service disruption going on.

It seems that by default, not all types of PR events are handled when pull_request is specified as on filter, a types sub-attribute must be specified (BTW the syntax about that in the documentation seems wrong).