Skip to content

[scanner] review: recognise Linear issue identifiers in reviewScopeContract #14909

Closed

Description

@hivecommons-hive

Part of #14906.

Scope (child 1 of 3)

Teach reviewScopeContract (src/pkg/github/client.go) to recognise a Linear issue identifier as the PR's scope contract when the repository's work source is Linear (or a Linear team key is mapped to the repo). Sources, in order:

  • a Linear magic word in the body (Fixes / Closes / Part of ONB-n);
  • a leading [ONB-n] in the PR title;
  • the head branch name (…/onb-3872-…).

Matches are restricted to the team keys configured for the repo; unknown keys are ignored. The contract string returned is linked Linear issue ONB-3872 so scopeContractSection can distinguish it from a GitHub issue. Existing GitHub closing-keyword and Hive-Run / Hive-Plan lease behaviour is unchanged.

Tests

  • reviewScopeContract finds ONB-3872 from each of the three sources.
  • An identifier with an unconfigured team key yields no contract.
  • Existing GitHub-issue and lease-task contracts still win when present.

Why

Today a PR whose only contract is a Linear issue gets an empty contract and the reviewer is told to treat title plus diff as the spec. This child only adds recognition; fetching the issue text and rendering it in the kick are the sibling children of #14906.

Decision taken by hive: split #14906 along the three steps in its own proposal so each PR stays reviewable; this child is independent of the Linear API and can land first.

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 28, 2026
  2. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    ContributorAuthor

    🔒 Claimed by @Karibhou (contributor on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 30m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  3. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    ContributorAuthor

    🔓 Claim by @Karibhou released (lease revoked).

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

    agent/scannerCreated or modified by the scanner agenthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions