Skip to content

fix(ci): restrict push trigger to main branch only - #92

Merged
CybotTM merged 1 commit into
mainfrom
fix/ci-double-execution
Mar 3, 2026
Merged

fix(ci): restrict push trigger to main branch only#92
CybotTM merged 1 commit into
mainfrom
fix/ci-double-execution

Conversation

@CybotTM

@CybotTM CybotTM commented Mar 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Restrict push: trigger in CI workflow to branches: [main]
  • Prevents double CI execution on PR branches (both push and pull_request were triggering)
  • pull_request and merge_group triggers remain unchanged for PR/merge queue coverage

Test plan

  • Verify CI runs once (not twice) on PR branches
  • Verify CI still runs on push to main
  • Verify scheduled runs still work

Without branch filter, push to any branch triggers CI. On PR branches
this causes double execution — once for push, once for pull_request.
Restricting push to main ensures PR branches only run CI via the
pull_request trigger.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI review requested due to automatic review settings March 3, 2026 23:11
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for your first pull request! We are excited to have you contribute.
A maintainer will review your PR soon. Please ensure all CI checks pass.

@github-actions github-actions Bot added the ci CI/CD changes label Mar 3, 2026
@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated approval for solo maintainer project

This PR has passed all automated quality gates:

  • ✅ Static analysis (PHPStan)
  • ✅ Code style (PHP-CS-Fixer)
  • ✅ Unit & functional tests
  • ✅ Security scanning
  • ✅ Dependency review

See SECURITY_CONTROLS.md for compensating controls documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Restricts the CI workflow’s push trigger to run only on the main branch, avoiding duplicate CI runs on PR branches where both push and pull_request events would otherwise fire.

Changes:

  • Limit on.push in CI workflow to branches: [main].
  • Keep pull_request, merge_group, and schedule triggers unchanged to maintain PR and merge-queue coverage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@CybotTM
CybotTM added this pull request to the merge queue Mar 3, 2026
Merged via the queue into main with commit fa0c008 Mar 3, 2026
44 checks passed
@CybotTM
CybotTM deleted the fix/ci-double-execution branch March 3, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants