Skip to content

Conversation

@xgopilot
Copy link
Contributor

@xgopilot xgopilot bot commented Dec 29, 2025

Requested by @luoliwoshang

This PR updates GitHub Actions workflows to prevent bot PRs (dependabot and xgopilot) from triggering both push and pull_request events, avoiding duplicate workflow runs.

Summary

  • Updated go.yml to exclude dependabot/** and xgopilot/** branches from push triggers
  • Updated gentest.yml to exclude dependabot/** and xgopilot/** branches from push triggers
  • Updated end2end.yml to exclude dependabot/** and xgopilot/** branches from push triggers

Changes

All three workflow files now use the following pattern for push triggers:

on:
  push:
    branches:
      - "**"
      - "!dependabot/**"
      - "!xgopilot/**"
  pull_request:
    branches: [ "**" ]

This ensures that when bots create PRs, only the pull_request event is triggered, not both push and pull_request events.

Fixes #604

Updated GitHub Actions workflows to prevent bot PRs (dependabot and
xgopilot) from triggering both push and pull_request events. This
avoids duplicate workflow runs.

Changes:
- go.yml: Added branch exclusions for dependabot/** and xgopilot/**
- gentest.yml: Added branch exclusions for dependabot/** and xgopilot/**
- end2end.yml: Added branch exclusions for dependabot/** and xgopilot/**

Fixes #604

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: luoliwoshang <[email protected]>
Copy link
Member

@luoliwoshang luoliwoshang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MeteorsLiu MeteorsLiu merged commit 97af785 into main Dec 29, 2025
12 checks passed
@xgopilot xgopilot bot deleted the xgopilot/claude/issue-604-1767002176 branch December 29, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci:avoid bot's pr trigger both push & pr event

3 participants