Skip to content

synchronize event should be handled for github without app as well #2455

@maurerle

Description

@maurerle

Feature request

When setting: handle_push_trigger

handle_push_trigger = false

it is respected by github_app but not by github action:
https://docs.pr-agent.ai/usage-guide/automations_and_usage/?h=github_action_config#github-action

It would be good to also "default" to handle PR updates (synchronize events) by default.

Motivation

otherwise the CI runs but shows "message": "Skipping action: synchronize", "module": "github_action_runner",

with this config:

name: PR Agent
on:
  pull_request:
  issue_comment:
jobs:
  pr_agent_job:
    if: ${{ github.event.sender.type != 'Bot' && (github.event_name == 'pull_request' || github.event.issue.pull_request) }}
    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write
      contents: write
    steps:
      - name: PR Agent action step
        uses: the-pr-agent/pr-agent@v0.36.1
        env:
          OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions