Skip to content

Official plugin: Linear (start work from a ticket, keep the ticket in sync) #3556

Open

Description

@integry

Goal

Teams that plan in Linear can hand a ticket to ProPR and see progress on the ticket, without copying anything to GitHub by hand. This issue also adds the settings data source that lets a plugin's configure form load choices from the service.

Behaviour

  • Mapping: settings map a Linear team (or project) to one GitHub repository. Tickets outside a mapping are ignored.
  • Start: a ticket is handed to ProPR by a configurable trigger: a label (default propr) being added. The plugin then creates a GitHub issue in the mapped repository with the ticket's title, its description, a link back to the ticket and the ProPR trigger label, and records the ticket-to-issue mapping in ctx.state. One ticket creates at most one issue (de-duplicated by ticket id, including across webhook retries). Ticket text is untrusted content: it becomes the issue body and nothing else (it cannot choose the repository, labels or model).
  • Sync back, each individually switchable: comment on the ticket when the task starts, when the pull request opens (with link), when review reaches the goal, when the pull request merges or closes, and when the task fails; move the ticket to a configured state on "pull request opened" and on "merged". State names are chosen from Linear's own workflow states, loaded for the configure form.
  • Settings data source: extend the manifest settings schema with an optional optionsFrom: '<handler>' for select fields so forms can load choices from the service; the API exposes it through a plugin settings-options route (administrator only, goes through ctx.http), and the generated form shows a clear error when the connection is not yet made.
  • Agent context: the plugin also contributes Linear's MCP server as a read-only managed library item (where the vendor offers a remote MCP server that accepts ProPR's sign-in; otherwise this contribution is omitted and the README says so), plus a short skill telling the agent how to look up the linked ticket.
  • Removing the trigger label or closing the ticket does not cancel work (documented).

Connection: Linear API key or OAuth, whichever the vendor documentation supports for server-side integrations, plus a webhook signing secret. Inbound: Linear webhooks for issue updates, verified with the documented signature header. Outbound: Linear GraphQL API. Confirm endpoints, payloads, authentication and the signature scheme against Linear's official documentation while implementing; record the links in the README.

Acceptance criteria

  • Fixture-based handler tests: trigger label added on a mapped ticket creates exactly one GitHub issue with link and trigger label; repeated or replayed webhooks create no second issue; unmapped tickets and other label changes do nothing; invalid signature is rejected before plugin code runs.
  • Each sync-back event posts the expected comment or state change when switched on and nothing when off; a missing state name is reported in Activity and does not block other events.
  • The configure form loads teams and workflow states through optionsFrom, with a clear error when not connected; the options route refuses non-administrators.
  • Ticket text cannot affect repository, labels or model (injection test).
  • No ticket text is sent anywhere except into the created GitHub issue; no code or logs are posted to tickets.
  • README with setup steps, required permissions or scopes, and a manual smoke-test checklist; docs/docs/plugins/linear.md.

Implementation

  1. optionsFrom in the manifest settings schema, the settings-options API route and the form's select field.
  2. packages/plugins/linear/ with manifest, handlers, fixtures, tests, README, skill bundle.
  3. A shared tracker helper in packages/plugins/_shared/ (ticket-to-issue creation, de-duplication, sync-back switches) that the Jira plugin reuses.
  4. Docs page.

Notes

Depends on the inbound webhooks issue and the settings form issue. Creating the GitHub issue (rather than a task directly) keeps one intake path: the existing label-triggered flow starts the task.

Activity

  1. added
    base-3542-epic-plugin-system-xu8
    on Nov 14, 2026
  2. propr-dev commented on Nov 16, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3556/claude-opus-5-5-official-plugin-linear-st-20261116-1655-2q8
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3556-20261116-1655-claude-opus-5-5-2q8

    🔍 Track Task Execution

  3. propr-dev commented on Nov 16, 2026

    @propr-dev
    Contributor

    ⌛ Rate Limit Reached

    Error from agent:

    You've hit your weekly limit · resets Nov 18, 4pm (UTC)

    Reset time: 5:02 PM UTC (in less than an hour)
    Next retry: 5:02 PM UTC


    The task will automatically resume after the rate limit resets. No action needed.

  4. propr-dev commented on Nov 16, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3556/claude-opus-5-5-official-plugin-linear-st-20261116-1658-zh8
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3556-20261116-1658-claude-opus-5-5-zh8

    🔍 Track Task Execution

  5. propr-dev commented on Nov 16, 2026

    @propr-dev
    Contributor

    ⌛ Rate Limit Reached

    Error from agent:

    You've hit your weekly limit · resets Nov 18, 4pm (UTC)

    Reset time: 6:02 PM UTC (in approximately 2 hours)
    Next retry: 6:02 PM UTC


    The task will automatically resume after the rate limit resets. No action needed.

  6. 20 remaining items

  7. propr-dev commented on Nov 16, 2026

    @propr-dev
    Contributor

    🛑 Execution Cancelled

    The task processing was stopped by user request.

    You can remove and re-add the trigger label to restart processing.

  8. propr-dev commented on Nov 16, 2026

    @propr-dev
    Contributor

    🛑 Execution Cancelled

    The task processing was stopped by user request.

    You can remove and re-add the trigger label to restart processing.

  9. propr-dev commented on Nov 16, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3556/claude-opus-5-5-official-plugin-linear-st-20261116-1828-z4f
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3556-20261116-1828-claude-opus-5-5-z4f

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-doneauto-mergebase-3542-epic-plugin-system-xu8llm-claude-opus55propr-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions