mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
tmp
This commit is contained in:
@@ -2,7 +2,10 @@ import { describe, test, expect, beforeEach, afterEach, spyOn } from "bun:test";
|
||||
import { prepareMcpConfig } from "../src/mcp/install-mcp-server";
|
||||
import * as core from "@actions/core";
|
||||
import type { ParsedGitHubContext } from "../src/github/context";
|
||||
import { GITHUB_ACTIONS_BOT_ID } from "../src/github/constants";
|
||||
import {
|
||||
CLAUDE_APP_BOT_ID,
|
||||
GITHUB_ACTIONS_BOT_LOGIN,
|
||||
} from "../src/github/constants";
|
||||
|
||||
describe("prepareMcpConfig", () => {
|
||||
let consoleInfoSpy: any;
|
||||
@@ -32,7 +35,8 @@ describe("prepareMcpConfig", () => {
|
||||
branchPrefix: "",
|
||||
useStickyComment: false,
|
||||
useCommitSigning: false,
|
||||
botId: String(GITHUB_ACTIONS_BOT_ID),
|
||||
botId: String(CLAUDE_APP_BOT_ID),
|
||||
botName: GITHUB_ACTIONS_BOT_LOGIN,
|
||||
allowedBots: "",
|
||||
trackProgress: false,
|
||||
},
|
||||
|
||||
@@ -9,7 +9,10 @@ import type {
|
||||
PullRequestReviewEvent,
|
||||
PullRequestReviewCommentEvent,
|
||||
} from "@octokit/webhooks-types";
|
||||
import { GITHUB_ACTIONS_BOT_ID } from "../src/github/constants";
|
||||
import {
|
||||
CLAUDE_APP_BOT_ID,
|
||||
GITHUB_ACTIONS_BOT_LOGIN,
|
||||
} from "../src/github/constants";
|
||||
|
||||
const defaultInputs = {
|
||||
prompt: "",
|
||||
@@ -19,7 +22,8 @@ const defaultInputs = {
|
||||
branchPrefix: "claude/",
|
||||
useStickyComment: false,
|
||||
useCommitSigning: false,
|
||||
botId: String(GITHUB_ACTIONS_BOT_ID),
|
||||
botId: String(CLAUDE_APP_BOT_ID),
|
||||
botName: GITHUB_ACTIONS_BOT_LOGIN,
|
||||
allowedBots: "",
|
||||
trackProgress: false,
|
||||
};
|
||||
|
||||
@@ -2,7 +2,10 @@ import { describe, expect, test, spyOn, beforeEach, afterEach } from "bun:test";
|
||||
import * as core from "@actions/core";
|
||||
import { checkWritePermissions } from "../src/github/validation/permissions";
|
||||
import type { ParsedGitHubContext } from "../src/github/context";
|
||||
import { GITHUB_ACTIONS_BOT_ID } from "../src/github/constants";
|
||||
import {
|
||||
CLAUDE_APP_BOT_ID,
|
||||
GITHUB_ACTIONS_BOT_LOGIN,
|
||||
} from "../src/github/constants";
|
||||
|
||||
describe("checkWritePermissions", () => {
|
||||
let coreInfoSpy: any;
|
||||
@@ -68,7 +71,8 @@ describe("checkWritePermissions", () => {
|
||||
branchPrefix: "claude/",
|
||||
useStickyComment: false,
|
||||
useCommitSigning: false,
|
||||
botId: String(GITHUB_ACTIONS_BOT_ID),
|
||||
botId: String(CLAUDE_APP_BOT_ID),
|
||||
botName: GITHUB_ACTIONS_BOT_LOGIN,
|
||||
allowedBots: "",
|
||||
trackProgress: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user