workflows

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

WorkflowClient handles all workflow-related operations for the Linear API. It uses the shared BaseClient for HTTP communication and manages workflow states and transitions.

func NewClient

func NewClient(base *core.BaseClient) *Client

NewWorkflowClient creates a new workflow client with the provided base client

func (*Client) GetWorkflowStateByName

func (wc *Client) GetWorkflowStateByName(teamID, stateName string) (*core.WorkflowState, error)

GetWorkflowStateByName retrieves a specific workflow state by name for a team Why: When updating issue states, users often know the state name (e.g., "In Progress") but need the state ID. This helper provides a convenient way to look up states by name. The search is case-insensitive to improve usability.

func (*Client) GetWorkflowStates

func (wc *Client) GetWorkflowStates(teamID string) ([]core.WorkflowState, error)

GetWorkflowStates retrieves all available workflow states with caching Why: Understanding available workflow states is crucial for proper issue state management. This method provides all possible states an issue can transition to, optionally filtered by team. Results are cached per team to reduce API calls.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL