mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-24 07:24:12 +08:00
Compare commits
1 Commits
v0.0.41
...
ashwin/exa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
786d0a4c1c |
31
README.md
31
README.md
@@ -170,7 +170,6 @@ jobs:
|
|||||||
| `anthropic_api_key` | Anthropic API key (required for direct API, not needed for Bedrock/Vertex) | No\* | - |
|
| `anthropic_api_key` | Anthropic API key (required for direct API, not needed for Bedrock/Vertex) | No\* | - |
|
||||||
| `claude_code_oauth_token` | Claude Code OAuth token (alternative to anthropic_api_key) | No\* | - |
|
| `claude_code_oauth_token` | Claude Code OAuth token (alternative to anthropic_api_key) | No\* | - |
|
||||||
| `direct_prompt` | Direct prompt for Claude to execute automatically without needing a trigger (for automated workflows) | No | - |
|
| `direct_prompt` | Direct prompt for Claude to execute automatically without needing a trigger (for automated workflows) | No | - |
|
||||||
| `override_prompt` | Complete replacement of Claude's prompt with custom template (supports variable substitution) | No | - |
|
|
||||||
| `base_branch` | The base branch to use for creating new branches (e.g., 'main', 'develop') | No | - |
|
| `base_branch` | The base branch to use for creating new branches (e.g., 'main', 'develop') | No | - |
|
||||||
| `max_turns` | Maximum number of conversation turns Claude can take (limits back-and-forth exchanges) | No | - |
|
| `max_turns` | Maximum number of conversation turns Claude can take (limits back-and-forth exchanges) | No | - |
|
||||||
| `timeout_minutes` | Timeout in minutes for execution | No | `30` |
|
| `timeout_minutes` | Timeout in minutes for execution | No | `30` |
|
||||||
@@ -396,36 +395,6 @@ jobs:
|
|||||||
|
|
||||||
Perfect for automatically reviewing PRs from new team members, external contributors, or specific developers who need extra guidance.
|
Perfect for automatically reviewing PRs from new team members, external contributors, or specific developers who need extra guidance.
|
||||||
|
|
||||||
#### Custom Prompt Templates
|
|
||||||
|
|
||||||
Use `override_prompt` for complete control over Claude's behavior with variable substitution:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- uses: anthropics/claude-code-action@beta
|
|
||||||
with:
|
|
||||||
override_prompt: |
|
|
||||||
Analyze PR #$PR_NUMBER in $REPOSITORY for security vulnerabilities.
|
|
||||||
|
|
||||||
Changed files:
|
|
||||||
$CHANGED_FILES
|
|
||||||
|
|
||||||
Focus on:
|
|
||||||
- SQL injection risks
|
|
||||||
- XSS vulnerabilities
|
|
||||||
- Authentication bypasses
|
|
||||||
- Exposed secrets or credentials
|
|
||||||
|
|
||||||
Provide severity ratings (Critical/High/Medium/Low) for any issues found.
|
|
||||||
```
|
|
||||||
|
|
||||||
The `override_prompt` feature supports these variables:
|
|
||||||
|
|
||||||
- `$REPOSITORY`, `$PR_NUMBER`, `$ISSUE_NUMBER`
|
|
||||||
- `$PR_TITLE`, `$ISSUE_TITLE`, `$PR_BODY`, `$ISSUE_BODY`
|
|
||||||
- `$PR_COMMENTS`, `$ISSUE_COMMENTS`, `$REVIEW_COMMENTS`
|
|
||||||
- `$CHANGED_FILES`, `$TRIGGER_COMMENT`, `$TRIGGER_USERNAME`
|
|
||||||
- `$BRANCH_NAME`, `$BASE_BRANCH`, `$EVENT_TYPE`, `$IS_PR`
|
|
||||||
|
|
||||||
## How It Works
|
## How It Works
|
||||||
|
|
||||||
1. **Trigger Detection**: Listens for comments containing the trigger phrase (default: `@claude`) or issue assignment to a specific user
|
1. **Trigger Detection**: Listens for comments containing the trigger phrase (default: `@claude`) or issue assignment to a specific user
|
||||||
|
|||||||
@@ -50,10 +50,6 @@ inputs:
|
|||||||
description: "Direct instruction for Claude (bypasses normal trigger detection)"
|
description: "Direct instruction for Claude (bypasses normal trigger detection)"
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
override_prompt:
|
|
||||||
description: "Complete replacement of Claude's prompt with custom template (supports variable substitution)"
|
|
||||||
required: false
|
|
||||||
default: ""
|
|
||||||
mcp_config:
|
mcp_config:
|
||||||
description: "Additional MCP configuration (JSON string) that merges with the built-in GitHub MCP servers"
|
description: "Additional MCP configuration (JSON string) that merges with the built-in GitHub MCP servers"
|
||||||
additional_permissions:
|
additional_permissions:
|
||||||
@@ -146,7 +142,6 @@ runs:
|
|||||||
DISALLOWED_TOOLS: ${{ inputs.disallowed_tools }}
|
DISALLOWED_TOOLS: ${{ inputs.disallowed_tools }}
|
||||||
CUSTOM_INSTRUCTIONS: ${{ inputs.custom_instructions }}
|
CUSTOM_INSTRUCTIONS: ${{ inputs.custom_instructions }}
|
||||||
DIRECT_PROMPT: ${{ inputs.direct_prompt }}
|
DIRECT_PROMPT: ${{ inputs.direct_prompt }}
|
||||||
OVERRIDE_PROMPT: ${{ inputs.override_prompt }}
|
|
||||||
MCP_CONFIG: ${{ inputs.mcp_config }}
|
MCP_CONFIG: ${{ inputs.mcp_config }}
|
||||||
OVERRIDE_GITHUB_TOKEN: ${{ inputs.github_token }}
|
OVERRIDE_GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||||
GITHUB_RUN_ID: ${{ github.run_id }}
|
GITHUB_RUN_ID: ${{ github.run_id }}
|
||||||
@@ -193,7 +188,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Install Claude Code globally
|
# Install Claude Code globally
|
||||||
npm install -g @anthropic-ai/claude-code@1.0.57
|
npm install -g @anthropic-ai/claude-code@1.0.56
|
||||||
|
|
||||||
# Run the base-action
|
# Run the base-action
|
||||||
cd ${GITHUB_ACTION_PATH}/base-action
|
cd ${GITHUB_ACTION_PATH}/base-action
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ runs:
|
|||||||
|
|
||||||
- name: Install Claude Code
|
- name: Install Claude Code
|
||||||
shell: bash
|
shell: bash
|
||||||
run: npm install -g @anthropic-ai/claude-code@1.0.57
|
run: npm install -g @anthropic-ai/claude-code@1.0.56
|
||||||
|
|
||||||
- name: Run Claude Code Action
|
- name: Run Claude Code Action
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ jobs:
|
|||||||
(github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
|
(github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
pull-requests: read
|
pull-requests: write
|
||||||
issues: read
|
issues: write
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
@@ -120,7 +120,6 @@ export function prepareContext(
|
|||||||
const allowedTools = context.inputs.allowedTools;
|
const allowedTools = context.inputs.allowedTools;
|
||||||
const disallowedTools = context.inputs.disallowedTools;
|
const disallowedTools = context.inputs.disallowedTools;
|
||||||
const directPrompt = context.inputs.directPrompt;
|
const directPrompt = context.inputs.directPrompt;
|
||||||
const overridePrompt = context.inputs.overridePrompt;
|
|
||||||
const isPR = context.isPR;
|
const isPR = context.isPR;
|
||||||
|
|
||||||
// Get PR/Issue number from entityNumber
|
// Get PR/Issue number from entityNumber
|
||||||
@@ -159,7 +158,6 @@ export function prepareContext(
|
|||||||
disallowedTools: disallowedTools.join(","),
|
disallowedTools: disallowedTools.join(","),
|
||||||
}),
|
}),
|
||||||
...(directPrompt && { directPrompt }),
|
...(directPrompt && { directPrompt }),
|
||||||
...(overridePrompt && { overridePrompt }),
|
|
||||||
...(claudeBranch && { claudeBranch }),
|
...(claudeBranch && { claudeBranch }),
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -462,76 +460,11 @@ function getCommitInstructions(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function substitutePromptVariables(
|
|
||||||
template: string,
|
|
||||||
context: PreparedContext,
|
|
||||||
githubData: FetchDataResult,
|
|
||||||
): string {
|
|
||||||
const { contextData, comments, reviewData, changedFilesWithSHA } = githubData;
|
|
||||||
const { eventData } = context;
|
|
||||||
|
|
||||||
const variables: Record<string, string> = {
|
|
||||||
REPOSITORY: context.repository,
|
|
||||||
PR_NUMBER:
|
|
||||||
eventData.isPR && "prNumber" in eventData ? eventData.prNumber : "",
|
|
||||||
ISSUE_NUMBER:
|
|
||||||
!eventData.isPR && "issueNumber" in eventData
|
|
||||||
? eventData.issueNumber
|
|
||||||
: "",
|
|
||||||
PR_TITLE: eventData.isPR && contextData?.title ? contextData.title : "",
|
|
||||||
ISSUE_TITLE: !eventData.isPR && contextData?.title ? contextData.title : "",
|
|
||||||
PR_BODY: eventData.isPR && contextData?.body ? contextData.body : "",
|
|
||||||
ISSUE_BODY: !eventData.isPR && contextData?.body ? contextData.body : "",
|
|
||||||
PR_COMMENTS: eventData.isPR
|
|
||||||
? formatComments(comments, githubData.imageUrlMap)
|
|
||||||
: "",
|
|
||||||
ISSUE_COMMENTS: !eventData.isPR
|
|
||||||
? formatComments(comments, githubData.imageUrlMap)
|
|
||||||
: "",
|
|
||||||
REVIEW_COMMENTS: eventData.isPR
|
|
||||||
? formatReviewComments(reviewData, githubData.imageUrlMap)
|
|
||||||
: "",
|
|
||||||
CHANGED_FILES: eventData.isPR
|
|
||||||
? formatChangedFilesWithSHA(changedFilesWithSHA)
|
|
||||||
: "",
|
|
||||||
TRIGGER_COMMENT: "commentBody" in eventData ? eventData.commentBody : "",
|
|
||||||
TRIGGER_USERNAME: context.triggerUsername || "",
|
|
||||||
BRANCH_NAME:
|
|
||||||
"claudeBranch" in eventData && eventData.claudeBranch
|
|
||||||
? eventData.claudeBranch
|
|
||||||
: "baseBranch" in eventData && eventData.baseBranch
|
|
||||||
? eventData.baseBranch
|
|
||||||
: "",
|
|
||||||
BASE_BRANCH:
|
|
||||||
"baseBranch" in eventData && eventData.baseBranch
|
|
||||||
? eventData.baseBranch
|
|
||||||
: "",
|
|
||||||
EVENT_TYPE: eventData.eventName,
|
|
||||||
IS_PR: eventData.isPR ? "true" : "false",
|
|
||||||
};
|
|
||||||
|
|
||||||
let result = template;
|
|
||||||
for (const [key, value] of Object.entries(variables)) {
|
|
||||||
const regex = new RegExp(`\\$${key}`, "g");
|
|
||||||
result = result.replace(regex, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function generatePrompt(
|
export function generatePrompt(
|
||||||
context: PreparedContext,
|
context: PreparedContext,
|
||||||
githubData: FetchDataResult,
|
githubData: FetchDataResult,
|
||||||
useCommitSigning: boolean,
|
useCommitSigning: boolean,
|
||||||
): string {
|
): string {
|
||||||
if (context.overridePrompt) {
|
|
||||||
return substitutePromptVariables(
|
|
||||||
context.overridePrompt,
|
|
||||||
context,
|
|
||||||
githubData,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
contextData,
|
contextData,
|
||||||
comments,
|
comments,
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ export type CommonFields = {
|
|||||||
allowedTools?: string;
|
allowedTools?: string;
|
||||||
disallowedTools?: string;
|
disallowedTools?: string;
|
||||||
directPrompt?: string;
|
directPrompt?: string;
|
||||||
overridePrompt?: string;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type PullRequestReviewCommentEvent = {
|
type PullRequestReviewCommentEvent = {
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ export type ParsedGitHubContext = {
|
|||||||
disallowedTools: string[];
|
disallowedTools: string[];
|
||||||
customInstructions: string;
|
customInstructions: string;
|
||||||
directPrompt: string;
|
directPrompt: string;
|
||||||
overridePrompt: string;
|
|
||||||
baseBranch?: string;
|
baseBranch?: string;
|
||||||
branchPrefix: string;
|
branchPrefix: string;
|
||||||
useStickyComment: boolean;
|
useStickyComment: boolean;
|
||||||
@@ -64,7 +63,6 @@ export function parseGitHubContext(): ParsedGitHubContext {
|
|||||||
disallowedTools: parseMultilineInput(process.env.DISALLOWED_TOOLS ?? ""),
|
disallowedTools: parseMultilineInput(process.env.DISALLOWED_TOOLS ?? ""),
|
||||||
customInstructions: process.env.CUSTOM_INSTRUCTIONS ?? "",
|
customInstructions: process.env.CUSTOM_INSTRUCTIONS ?? "",
|
||||||
directPrompt: process.env.DIRECT_PROMPT ?? "",
|
directPrompt: process.env.DIRECT_PROMPT ?? "",
|
||||||
overridePrompt: process.env.OVERRIDE_PROMPT ?? "",
|
|
||||||
baseBranch: process.env.BASE_BRANCH,
|
baseBranch: process.env.BASE_BRANCH,
|
||||||
branchPrefix: process.env.BRANCH_PREFIX ?? "claude/",
|
branchPrefix: process.env.BRANCH_PREFIX ?? "claude/",
|
||||||
useStickyComment: process.env.USE_STICKY_COMMENT === "true",
|
useStickyComment: process.env.USE_STICKY_COMMENT === "true",
|
||||||
|
|||||||
@@ -322,148 +322,6 @@ describe("generatePrompt", () => {
|
|||||||
expect(prompt).toContain("CUSTOM INSTRUCTIONS:\nAlways use TypeScript");
|
expect(prompt).toContain("CUSTOM INSTRUCTIONS:\nAlways use TypeScript");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("should use override_prompt when provided", () => {
|
|
||||||
const envVars: PreparedContext = {
|
|
||||||
repository: "owner/repo",
|
|
||||||
claudeCommentId: "12345",
|
|
||||||
triggerPhrase: "@claude",
|
|
||||||
overridePrompt: "Simple prompt for $REPOSITORY PR #$PR_NUMBER",
|
|
||||||
eventData: {
|
|
||||||
eventName: "pull_request",
|
|
||||||
eventAction: "opened",
|
|
||||||
isPR: true,
|
|
||||||
prNumber: "123",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const prompt = generatePrompt(envVars, mockGitHubData, false);
|
|
||||||
|
|
||||||
expect(prompt).toBe("Simple prompt for owner/repo PR #123");
|
|
||||||
expect(prompt).not.toContain("You are Claude, an AI assistant");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("should substitute all variables in override_prompt", () => {
|
|
||||||
const envVars: PreparedContext = {
|
|
||||||
repository: "test/repo",
|
|
||||||
claudeCommentId: "12345",
|
|
||||||
triggerPhrase: "@claude",
|
|
||||||
triggerUsername: "john-doe",
|
|
||||||
overridePrompt: `Repository: $REPOSITORY
|
|
||||||
PR: $PR_NUMBER
|
|
||||||
Title: $PR_TITLE
|
|
||||||
Body: $PR_BODY
|
|
||||||
Comments: $PR_COMMENTS
|
|
||||||
Review Comments: $REVIEW_COMMENTS
|
|
||||||
Changed Files: $CHANGED_FILES
|
|
||||||
Trigger Comment: $TRIGGER_COMMENT
|
|
||||||
Username: $TRIGGER_USERNAME
|
|
||||||
Branch: $BRANCH_NAME
|
|
||||||
Base: $BASE_BRANCH
|
|
||||||
Event: $EVENT_TYPE
|
|
||||||
Is PR: $IS_PR`,
|
|
||||||
eventData: {
|
|
||||||
eventName: "pull_request_review_comment",
|
|
||||||
isPR: true,
|
|
||||||
prNumber: "456",
|
|
||||||
commentBody: "Please review this code",
|
|
||||||
claudeBranch: "feature-branch",
|
|
||||||
baseBranch: "main",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const prompt = generatePrompt(envVars, mockGitHubData, false);
|
|
||||||
|
|
||||||
expect(prompt).toContain("Repository: test/repo");
|
|
||||||
expect(prompt).toContain("PR: 456");
|
|
||||||
expect(prompt).toContain("Title: Test PR");
|
|
||||||
expect(prompt).toContain("Body: This is a test PR");
|
|
||||||
expect(prompt).toContain("Comments: ");
|
|
||||||
expect(prompt).toContain("Review Comments: ");
|
|
||||||
expect(prompt).toContain("Changed Files: ");
|
|
||||||
expect(prompt).toContain("Trigger Comment: Please review this code");
|
|
||||||
expect(prompt).toContain("Username: john-doe");
|
|
||||||
expect(prompt).toContain("Branch: feature-branch");
|
|
||||||
expect(prompt).toContain("Base: main");
|
|
||||||
expect(prompt).toContain("Event: pull_request_review_comment");
|
|
||||||
expect(prompt).toContain("Is PR: true");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("should handle override_prompt for issues", () => {
|
|
||||||
const envVars: PreparedContext = {
|
|
||||||
repository: "owner/repo",
|
|
||||||
claudeCommentId: "12345",
|
|
||||||
triggerPhrase: "@claude",
|
|
||||||
overridePrompt: "Issue #$ISSUE_NUMBER: $ISSUE_TITLE in $REPOSITORY",
|
|
||||||
eventData: {
|
|
||||||
eventName: "issues",
|
|
||||||
eventAction: "opened",
|
|
||||||
isPR: false,
|
|
||||||
issueNumber: "789",
|
|
||||||
baseBranch: "main",
|
|
||||||
claudeBranch: "claude/issue-789-20240101-1200",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const issueGitHubData = {
|
|
||||||
...mockGitHubData,
|
|
||||||
contextData: {
|
|
||||||
title: "Bug: Login form broken",
|
|
||||||
body: "The login form is not working",
|
|
||||||
author: { login: "testuser" },
|
|
||||||
state: "OPEN",
|
|
||||||
createdAt: "2023-01-01T00:00:00Z",
|
|
||||||
comments: {
|
|
||||||
nodes: [],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const prompt = generatePrompt(envVars, issueGitHubData, false);
|
|
||||||
|
|
||||||
expect(prompt).toBe("Issue #789: Bug: Login form broken in owner/repo");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("should handle empty values in override_prompt substitution", () => {
|
|
||||||
const envVars: PreparedContext = {
|
|
||||||
repository: "owner/repo",
|
|
||||||
claudeCommentId: "12345",
|
|
||||||
triggerPhrase: "@claude",
|
|
||||||
overridePrompt:
|
|
||||||
"PR: $PR_NUMBER, Issue: $ISSUE_NUMBER, Comment: $TRIGGER_COMMENT",
|
|
||||||
eventData: {
|
|
||||||
eventName: "pull_request",
|
|
||||||
eventAction: "opened",
|
|
||||||
isPR: true,
|
|
||||||
prNumber: "123",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const prompt = generatePrompt(envVars, mockGitHubData, false);
|
|
||||||
|
|
||||||
expect(prompt).toBe("PR: 123, Issue: , Comment: ");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("should not substitute variables when override_prompt is not provided", () => {
|
|
||||||
const envVars: PreparedContext = {
|
|
||||||
repository: "owner/repo",
|
|
||||||
claudeCommentId: "12345",
|
|
||||||
triggerPhrase: "@claude",
|
|
||||||
eventData: {
|
|
||||||
eventName: "issues",
|
|
||||||
eventAction: "opened",
|
|
||||||
isPR: false,
|
|
||||||
issueNumber: "123",
|
|
||||||
baseBranch: "main",
|
|
||||||
claudeBranch: "claude/issue-123-20240101-1200",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const prompt = generatePrompt(envVars, mockGitHubData, false);
|
|
||||||
|
|
||||||
expect(prompt).toContain("You are Claude, an AI assistant");
|
|
||||||
expect(prompt).toContain("<event_type>ISSUE_CREATED</event_type>");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("should include trigger username when provided", () => {
|
test("should include trigger username when provided", () => {
|
||||||
const envVars: PreparedContext = {
|
const envVars: PreparedContext = {
|
||||||
repository: "owner/repo",
|
repository: "owner/repo",
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ describe("prepareMcpConfig", () => {
|
|||||||
disallowedTools: [],
|
disallowedTools: [],
|
||||||
customInstructions: "",
|
customInstructions: "",
|
||||||
directPrompt: "",
|
directPrompt: "",
|
||||||
overridePrompt: "",
|
|
||||||
branchPrefix: "",
|
branchPrefix: "",
|
||||||
useStickyComment: false,
|
useStickyComment: false,
|
||||||
additionalPermissions: new Map(),
|
additionalPermissions: new Map(),
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ const defaultInputs = {
|
|||||||
disallowedTools: [] as string[],
|
disallowedTools: [] as string[],
|
||||||
customInstructions: "",
|
customInstructions: "",
|
||||||
directPrompt: "",
|
directPrompt: "",
|
||||||
overridePrompt: "",
|
|
||||||
useBedrock: false,
|
useBedrock: false,
|
||||||
useVertex: false,
|
useVertex: false,
|
||||||
timeoutMinutes: 30,
|
timeoutMinutes: 30,
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ describe("checkWritePermissions", () => {
|
|||||||
disallowedTools: [],
|
disallowedTools: [],
|
||||||
customInstructions: "",
|
customInstructions: "",
|
||||||
directPrompt: "",
|
directPrompt: "",
|
||||||
overridePrompt: "",
|
|
||||||
branchPrefix: "claude/",
|
branchPrefix: "claude/",
|
||||||
useStickyComment: false,
|
useStickyComment: false,
|
||||||
additionalPermissions: new Map(),
|
additionalPermissions: new Map(),
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ describe("checkContainsTrigger", () => {
|
|||||||
assigneeTrigger: "",
|
assigneeTrigger: "",
|
||||||
labelTrigger: "",
|
labelTrigger: "",
|
||||||
directPrompt: "Fix the bug in the login form",
|
directPrompt: "Fix the bug in the login form",
|
||||||
overridePrompt: "",
|
|
||||||
allowedTools: [],
|
allowedTools: [],
|
||||||
disallowedTools: [],
|
disallowedTools: [],
|
||||||
customInstructions: "",
|
customInstructions: "",
|
||||||
@@ -64,7 +63,6 @@ describe("checkContainsTrigger", () => {
|
|||||||
assigneeTrigger: "",
|
assigneeTrigger: "",
|
||||||
labelTrigger: "",
|
labelTrigger: "",
|
||||||
directPrompt: "",
|
directPrompt: "",
|
||||||
overridePrompt: "",
|
|
||||||
allowedTools: [],
|
allowedTools: [],
|
||||||
disallowedTools: [],
|
disallowedTools: [],
|
||||||
customInstructions: "",
|
customInstructions: "",
|
||||||
@@ -280,7 +278,6 @@ describe("checkContainsTrigger", () => {
|
|||||||
assigneeTrigger: "",
|
assigneeTrigger: "",
|
||||||
labelTrigger: "",
|
labelTrigger: "",
|
||||||
directPrompt: "",
|
directPrompt: "",
|
||||||
overridePrompt: "",
|
|
||||||
allowedTools: [],
|
allowedTools: [],
|
||||||
disallowedTools: [],
|
disallowedTools: [],
|
||||||
customInstructions: "",
|
customInstructions: "",
|
||||||
@@ -313,7 +310,6 @@ describe("checkContainsTrigger", () => {
|
|||||||
assigneeTrigger: "",
|
assigneeTrigger: "",
|
||||||
labelTrigger: "",
|
labelTrigger: "",
|
||||||
directPrompt: "",
|
directPrompt: "",
|
||||||
overridePrompt: "",
|
|
||||||
allowedTools: [],
|
allowedTools: [],
|
||||||
disallowedTools: [],
|
disallowedTools: [],
|
||||||
customInstructions: "",
|
customInstructions: "",
|
||||||
@@ -346,7 +342,6 @@ describe("checkContainsTrigger", () => {
|
|||||||
assigneeTrigger: "",
|
assigneeTrigger: "",
|
||||||
labelTrigger: "",
|
labelTrigger: "",
|
||||||
directPrompt: "",
|
directPrompt: "",
|
||||||
overridePrompt: "",
|
|
||||||
allowedTools: [],
|
allowedTools: [],
|
||||||
disallowedTools: [],
|
disallowedTools: [],
|
||||||
customInstructions: "",
|
customInstructions: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user