Commit 6c43e39
feat(issue-helpers): add move_issue/2 for moving an issue to a resolved project (#186)
## Summary
- Add `IssueHelpers.move_issue/2` that accepts a pre-resolved
`%Project{}` struct and moves an issue to it via
`Linear.attach_issue_to_project/2`, printing a confirmation message
(`"IDENTIFIER was moved to PROJECT_NAME"`)
- Refactor `attach_project/2` to delegate to `move_issue/2` after
resolving the search string, removing duplicated attachment logic
- Update tests to reflect the new `"was moved to"` confirmation message
(previously `"was attached to"`)
- Add 2 new unit tests for `move_issue/2` directly (success + error
propagation cases)
## Test plan
- [x] `mix test test/linear_cli/cli/issue_helpers_test.exs` — all 36
tests pass (was 34)
- [x] `mix ci` from repo root — all checks pass (deps audit, format,
credo, usage_rules, tests)
- [x] Existing `attach_project/2` test still passes (confirmation
message updated to match new behavior)
- [x] Existing `update_issue/2` dispatch `:project` test still passes
Closes https://linear.app/the-rubyists/issue/EXT-8
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b47f01f commit 6c43e39
2 files changed
Lines changed: 50 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
285 | 307 | | |
286 | 308 | | |
287 | 309 | | |
| |||
291 | 313 | | |
292 | 314 | | |
293 | 315 | | |
| 316 | + | |
| 317 | + | |
294 | 318 | | |
295 | 319 | | |
296 | 320 | | |
297 | 321 | | |
298 | 322 | | |
299 | 323 | | |
300 | 324 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 325 | + | |
310 | 326 | | |
311 | 327 | | |
312 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
286 | 308 | | |
287 | 309 | | |
288 | 310 | | |
| |||
303 | 325 | | |
304 | 326 | | |
305 | 327 | | |
306 | | - | |
| 328 | + | |
307 | 329 | | |
308 | 330 | | |
309 | 331 | | |
| |||
380 | 402 | | |
381 | 403 | | |
382 | 404 | | |
383 | | - | |
| 405 | + | |
384 | 406 | | |
385 | 407 | | |
386 | 408 | | |
| |||
0 commit comments