Skip to main content

Module linear

Module linear 

Source
Expand description

The Linear bridge.

Layered so the parts that can be tested without a network are the parts that can do damage:

  • client — the only code that talks HTTP, behind a one-method trait.
  • model — serde shapes for the fields cliban mirrors.
  • ops — typed GraphQL operations, generic over the trait.
  • states — cliban’s five statuses ↔ a team’s workflow states.
  • render — the description and comment text, pure string in/out.

Re-exports§

pub use client::Client;
pub use client::GraphQl;

Modules§

client
The Linear GraphQL transport.
model
Serde shapes for the slice of Linear’s GraphQL schema cliban touches.
ops
Typed GraphQL operations, generic over GraphQl so tests can drive them with canned JSON.
render
Pure text: what a Linear issue looks like as a cliban description, and what cliban progress looks like in Linear.
states
Mapping cliban’s five fixed statuses onto a Linear team’s arbitrary workflow states, and back.