mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 15:04:13 +08:00
test + formatting fixes
This commit is contained in:
@@ -29,9 +29,7 @@ async function run() {
|
||||
// For review mode, use the default GitHub Action token
|
||||
githubToken = process.env.DEFAULT_WORKFLOW_TOKEN || "";
|
||||
if (!githubToken) {
|
||||
throw new Error(
|
||||
"DEFAULT_WORKFLOW_TOKEN not found for review mode",
|
||||
);
|
||||
throw new Error("DEFAULT_WORKFLOW_TOKEN not found for review mode");
|
||||
}
|
||||
console.log("Using default GitHub Action token for review mode");
|
||||
core.setOutput("GITHUB_TOKEN", githubToken);
|
||||
@@ -41,7 +39,6 @@ async function run() {
|
||||
}
|
||||
const octokit = createOctokit(githubToken);
|
||||
|
||||
|
||||
// Step 3: Check write permissions (only for entity contexts)
|
||||
if (isEntityContext(context)) {
|
||||
const hasWritePermissions = await checkWritePermissions(
|
||||
|
||||
Reference in New Issue
Block a user