Skip to content

Remove EnsureBranchPushed function and related code#5

Merged
csvenke merged 1 commit intomainfrom
feature/llm-gh-pr-fix
Mar 6, 2026
Merged

Remove EnsureBranchPushed function and related code#5
csvenke merged 1 commit intomainfrom
feature/llm-gh-pr-fix

Conversation

@csvenke
Copy link
Copy Markdown
Owner

@csvenke csvenke commented Mar 6, 2026

This PR removes the EnsureBranchPushed function and all associated code that handled automatic branch pushing before creating pull requests.

Changes

  • Removed EnsureBranchPushed function from internal/gh/gh.go
  • Removed runGitCommand helper function that was only used by EnsureBranchPushed
  • Removed EnsureBranchPushedFunc variable from internal/cmd/gh/pr/command.go
  • Removed the branch push step from the PR creation workflow
  • Cleaned up related test cases and mocks in internal/cmd/cmd_test.go and internal/gh/gh_test.go

Impact

Pull request creation will no longer automatically push the current branch. Users will need to manually push their branches before creating pull requests.

@csvenke csvenke force-pushed the feature/llm-gh-pr-fix branch from b429cbd to 6211d1d Compare March 6, 2026 16:45
- Remove EnsureBranchPushed function from gh package
- Remove EnsureBranchPushedFunc variable and its usage from pr command
- Remove runGitCommand helper function
- Remove all related tests for EnsureBranchPushed
@csvenke csvenke force-pushed the feature/llm-gh-pr-fix branch from 6211d1d to df3dac0 Compare March 6, 2026 16:52
@csvenke csvenke merged commit 489a725 into main Mar 6, 2026
4 checks passed
@csvenke csvenke deleted the feature/llm-gh-pr-fix branch March 6, 2026 17:28
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