Skip to content

feat: introduce forge-agnostic MergeMethod type in config#1

Open
harshs-dyte wants to merge 1 commit intomasterfrom
spr/master/e1a2b3c4
Open

feat: introduce forge-agnostic MergeMethod type in config#1
harshs-dyte wants to merge 1 commit intomasterfrom
spr/master/e1a2b3c4

Conversation

@harshs-dyte
Copy link
Copy Markdown
Owner

@harshs-dyte harshs-dyte commented Feb 17, 2026

Replace the GitHub-specific genclient.PullRequestMergeMethod with a new
config.MergeMethod string type and constants (MergeMethodMerge,
MergeMethodSquash, MergeMethodRebase). This decouples the config package
from the GitHub GraphQL client, allowing other forge implementations to
use the same merge method configuration.

  • Rename Config.MergeMethod() to Config.ParseMergeMethod()
  • Add toGitHubMergeMethod() conversion in githubclient
  • Update mock client and tests to use config.MergeMethod

Stack:


⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

Replace the GitHub-specific genclient.PullRequestMergeMethod with a new
config.MergeMethod string type and constants (MergeMethodMerge,
MergeMethodSquash, MergeMethodRebase). This decouples the config package
from the GitHub GraphQL client, allowing other forge implementations to
use the same merge method configuration.

- Rename Config.MergeMethod() to Config.ParseMergeMethod()
- Add toGitHubMergeMethod() conversion in githubclient
- Update mock client and tests to use config.MergeMethod

commit-id:e1a2b3c4
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