Skip to content

refactor(cli): extract pull-request workflow and remove IssueHelpers - #269

Merged
ruby-automation merged 1 commit into
mainfrom
EXT-51-extract-pull-request-workflow-remove-issuehelpers
Sep 12, 2026
Merged

refactor(cli): extract pull-request workflow and remove IssueHelpers#269
ruby-automation merged 1 commit into
mainfrom
EXT-51-extract-pull-request-workflow-remove-issuehelpers

Conversation

@ruby-automation

@ruby-automation ruby-automation commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Create LinearCli.CLI.Issue.PullRequest with create_pr!/3 and issue_pr/2, extracted from the now-deleted LinearCli.CLI.IssueHelpers
  • Update CLI.Issue.Actions.update_issue/2 to dispatch the :pr option to PullRequest.issue_pr/2 instead of IssueHelpers
  • Remove IssueHelpers alias from commands.ex; add PullRequest alias; update the IssueHelpers.issue_pr call site
  • Delete issue_helpers.ex and rename issue_helpers_test.exsissue/pull_request_test.exs (same 2 tests, module updated)
  • Update all stale IssueHelpers doc references across cli.ex, rollover.ex, display.ex, issue_commands_test.exs, and the EXT-48/49/50 modules

Closes EXT-51.

Test plan

  • mix precommit clean (format, credo --strict, full test suite)
  • mix test — 493 passed (test-neutral: 2 IssueHelpers PR tests renamed to PullRequest module)
  • mix compile --warnings-as-errors clean
  • grep -rn 'IssueHelpers' app/ — only historical-context "former" references remain; zero functional references

🤖 Generated with Claude Code

Extract `create_pr!/3` and `issue_pr/2` from `LinearCli.CLI.IssueHelpers`
into a new `LinearCli.CLI.Issue.PullRequest` module. Update `Actions`
to dispatch the `:pr` option to `PullRequest.issue_pr/2` instead of
`IssueHelpers`. Update `commands.ex` to alias `PullRequest` and remove
the `IssueHelpers` alias. Delete `issue_helpers.ex` and migrate its
two tests to `pull_request_test.exs`. Update all stale `IssueHelpers`
references in doc comments across `cli.ex`, `rollover.ex`, `display.ex`,
`issue_commands_test.exs`, and the EXT-48/49/50 modules.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ruby-automation
ruby-automation force-pushed the EXT-51-extract-pull-request-workflow-remove-issuehelpers branch from ced424a to c3e55ff Compare September 12, 2026 00:39
@ruby-automation
ruby-automation merged commit 14f0622 into main Sep 12, 2026
6 checks passed
@ruby-automation
ruby-automation deleted the EXT-51-extract-pull-request-workflow-remove-issuehelpers branch September 12, 2026 01:29
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