Skip to content

Do not self combine #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2025
Merged

Do not self combine #8

merged 3 commits into from
Apr 11, 2025

Conversation

GrantBirki
Copy link
Member

This pull request makes it so that existing combine-prs branches do not get "self combined" into new PRs if they already exist.

@GrantBirki GrantBirki added the bug Something isn't working label Apr 11, 2025
@Copilot Copilot AI review requested due to automatic review settings April 11, 2025 20:14
Copy link
Contributor

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

This PR prevents "self combining" of already existing combine-pr branches into new PRs.

  • Introduces a new test suite for branch matching criteria.
  • Adds a condition in branchMatchesCriteria to return false if the branch name equals the global combine branch name.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/cmd/match_criteria_test.go Adds comprehensive tests for branch matching criteria.
internal/cmd/match_criteria.go Updates branchMatchesCriteria to exclude the combine branch.

@GrantBirki GrantBirki merged commit ae0d3fc into main Apr 11, 2025
7 checks passed
@GrantBirki GrantBirki deleted the do-not-self-combine branch April 11, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant