Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By goodfoot-iov1.0.7In 1 marketplace
Linear webhook comment parsing and issue reference validation utilities
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Complete solution for parsing and validating issue references from Linear webhook comments with automatic deduplication, error handling, and real-world examples.
const refs = extractIssueReferences(
"@claude This relates to GOO-1, GOO-2, and check ENG-100. GOO-1 again."
);
// Result:
// [
// { identifier: "GOO-1", teamKey: "GOO", number: 1, count: 2 },
// { identifier: "GOO-2", teamKey: "GOO", number: 2, count: 1 },
// { identifier: "ENG-100", teamKey: "ENG", number: 100, count: 1 }
// ]
Unique references: 3 Total mentions: 4 Deduplication: YES (GOO-1 counted twice)
const results = await validateIssueReferences(client, ["GOO-1", "FAKE-999"]);
// Results:
// [
// {
// identifier: "GOO-1",
// exists: true,
// issue: { id, title, url, state, assignee }
// },
// {
// identifier: "FAKE-999",
// exists: false,
// error: "Issue does not exist"
// }
// ]
const result = await processCommentReferences(client, body);
result.summary
// {
// unique: 3,
// total: 4,
// valid: 3,
// invalid: 0
// }
result.validReferences // Valid issues with full metadata
result.invalidReferences // Invalid issues with error messages
Works with all Linear issue reference formats:
| Format | Example | Parsed As |
|---|---|---|
| Simple team | GOO-1 | team: GOO, number: 1 |
| Multi-digit | ENG-100 | team: ENG, number: 100 |
| Multi-part | MY-LONG-KEY-1 | team: MY-LONG-KEY, number: 1 |
| Complex | APP-DB-CONN-999 | team: APP-DB-CONN, number: 999 |
All mentioned in same comment with automatic deduplication.
npx tsx -e "
import { extractIssueReferences } from './plugins-claude/linear/issue-reference-parser';
const refs = extractIssueReferences('Check GOO-1 and ENG-100');
console.log(JSON.stringify(refs, null, 2));
"
dotenv -- tsx -e "
import { LinearClient } from '@linear/sdk';
import { processCommentReferences } from './plugins-claude/linear/issue-reference-parser';
const client = new LinearClient({ apiKey: process.env.LINEAR_API_KEY });
const result = await processCommentReferences(client, 'GOO-1 and FAKE-999');
console.log(JSON.stringify(result.summary, null, 2));
"
# Extract tests (no API)
npx tsx test-comment-parsing.ts
# With validation (requires API)
dotenv -- tsx test-comment-parsing.ts
Five ready-to-use webhook handler patterns:
Automatically comment on referenced issues to create cross-links.
Add all referenced issues to the same project.
Build detailed impact reports showing status breakdown.
Notify teams about references to their issues.
Analyze comments to detect blocking/dependency relationships.
See INTEGRATION_GUIDE.md for complete implementations.
extractIssueReferences(text: string)Extracts unique references with automatic deduplication.
Returns: ParsedIssueReference[]
{
identifier: string; // "GOO-1"
teamKey: string; // "GOO"
number: number; // 1
count: number; // How many times mentioned
}
validateIssueReferences(client, references: string[])Validates references exist in Linear.
Returns: IssueValidationResult[]
{
identifier: string;
exists: boolean;
error?: string;
issue?: {
id: string;
title: string;
url: string;
state?: string;
assignee?: string;
};
}
processCommentReferences(client, commentBody: string)Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub goodfoot-io/marketplace --plugin linearPlugins from other owners that cover similar ground