diff --git a/.github/scripts/handle_mentions.py b/.github/scripts/handle_mentions.py index 4c08e9f..6b289e1 100644 --- a/.github/scripts/handle_mentions.py +++ b/.github/scripts/handle_mentions.py @@ -278,6 +278,10 @@ def main() -> None: agent_configs = load_agent_configs() triggered_agents = find_triggered_agents(comment_body, agent_configs) + # If no agents triggered but it's a review request, trigger all agents + if not triggered_agents and is_review_request(comment_body): + triggered_agents = agent_configs + if not triggered_agents: logger.info("No agents triggered by this comment") sys.exit(0) diff --git a/.github/workflows/gito-mentions.yml b/.github/workflows/gito-mentions.yml index 32b74dc..d2efea2 100644 --- a/.github/workflows/gito-mentions.yml +++ b/.github/workflows/gito-mentions.yml @@ -17,6 +17,7 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 0 + ref: refs/pull/${{ github.event.issue.number }}/head - name: Determine if PR is from fork id: determine_if_fork_or_branch env: