Skip to content

feat: implement PR combine #2

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 7 commits into from
Apr 7, 2025
Merged

feat: implement PR combine #2

merged 7 commits into from
Apr 7, 2025

Conversation

GrantBirki
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings April 7, 2025 21:55
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 implements the "PR combine" feature by introducing new CLI flags and functionality to combine pull requests using both REST and GraphQL clients.

  • Introduces two new CLI flags in root.go for customizing base branch and combining behavior.
  • Adds GraphQL logic for checking PR requirements in match_criteria.go.
  • Implements the CombinePRs function that merges PR branches in combine_prs.go.

Reviewed Changes

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

File Description
internal/cmd/root.go New CLI flags added and updated command usage examples
internal/cmd/match_criteria.go GraphQL-based PR status checking functions introduced
internal/cmd/combine_prs.go New implementation for combining PRs based on merged branches
Files not reviewed (1)
  • go.mod: Language not supported

@GrantBirki GrantBirki merged commit 2b3626c into main Apr 7, 2025
6 checks passed
@GrantBirki GrantBirki deleted the ci-and-approval-checks branch April 7, 2025 22:07
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.

1 participant