Skip to content

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

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

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

Conversation

@CybotTM
Copy link
Member

@CybotTM CybotTM commented Mar 3, 2026

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

Note

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

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
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Dependency Review

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

Scanned Files

None

Copy link
Contributor

@github-actions github-actions bot left a comment

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.

Copy link

Copilot AI left a comment

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