Skip to content

Commit 1e6ce3c

Browse files
adds linear claude issue check in prepreview
1 parent 9a7d857 commit 1e6ce3c

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.claude/commands/prereview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Clear context & review changes on current branch
3-
allowed-tools: Bash(git:*)
3+
allowed-tools: mcp__linear__get_issue, Bash(git:*)
44
---
55

66
/clear
@@ -14,6 +14,7 @@ Check the local commits I've added to the current branch and make suggestions ab
1414
- best practices to follow
1515
- libraries to use
1616
- check that I've followed established patterns in the project and used any apropriate utilities etc.
17+
- check the relevant Linear issue so that I've covered the entire definition of done (the Linear issue id is at the start of the git branch name in the format MIM-{number}). If the issue isn't found or the branch name doesn't contain a Linear issue ID, skip this check and mention it in the review
1718
- check the claude.md files and make sure I follow the instructions there
1819

1920
Give me feedback as if you were code reviewing a PR.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ lib-cov
6363
!.claude/commands/
6464
.claude/commands/*
6565
!.claude/commands/prereview.md
66+
67+
CLAUDE.md

.mcp.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"mcpServers": {
3+
"linear-server": {
4+
"type": "http",
5+
"url": "https://mcp.linear.app/mcp"
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)