feat(linear): add complete issue relations (#9674)
* feat(linear): add complete issue relations * fix(linear): harden relation reads and writes * fix(linear): classify ambiguous relation writes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { RpcResponse } from '../runtime/rpc/core'
|
||||
import type { RpcDispatcher } from '../runtime/rpc/dispatcher'
|
||||
import { getRemoteLinearWriteHelp } from './ssh-remote-linear-write-help'
|
||||
import { dispatchRemoteLinearRelationWrite } from './ssh-remote-linear-relation-write'
|
||||
import {
|
||||
RemoteLinearWriteArgumentError,
|
||||
buildRemoteContext,
|
||||
@@ -66,6 +67,15 @@ export async function tryDispatchRemoteLinearWriteCli(
|
||||
env: Record<string, string>,
|
||||
stdin?: string
|
||||
): Promise<RpcResponse | null> {
|
||||
if (isRemoteCommand(parsed, 'linear', 'relation', 'add')) {
|
||||
return await dispatchRemoteLinearRelationWrite(dispatcher, parsed, env, 'add')
|
||||
}
|
||||
if (
|
||||
isRemoteCommand(parsed, 'linear', 'relation', 'remove') ||
|
||||
isRemoteCommand(parsed, 'linear', 'relation', 'rm')
|
||||
) {
|
||||
return await dispatchRemoteLinearRelationWrite(dispatcher, parsed, env, 'remove')
|
||||
}
|
||||
if (isRemoteCommand(parsed, 'linear', 'status', 'set')) {
|
||||
validateLinearRemoteArgs(parsed, LINEAR_STATUS_FLAGS, ['linear', 'status', 'set'], 1, 'id')
|
||||
return await call(dispatcher, 'linear.issueSetState', {
|
||||
|
||||
Reference in New Issue
Block a user