Skip to content

ci: exclude bot branches from push event triggers#605

Merged
MeteorsLiu merged 1 commit into
mainfrom
xgopilot/claude/issue-604-1767002176
Dec 29, 2025
Merged

ci: exclude bot branches from push event triggers#605
MeteorsLiu merged 1 commit into
mainfrom
xgopilot/claude/issue-604-1767002176

Conversation

@fennoai
Copy link
Copy Markdown
Contributor

@fennoai fennoai 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 <51194195+luoliwoshang@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@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
@fennoai fennoai 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