Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/build.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/merge.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/preview.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/compat/github/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { logger } from "../../logger";
import type { APIClient, Comment, PullRequest } from "../api";
import { getInput } from "../input";
import { getGitHubContext as ctx } from "./context";
import { LogLevel } from "@stainless-api/github-internal/client";

class GitHubClient implements APIClient {
private client: PartialGitHub<{
Expand All @@ -28,8 +27,7 @@ class GitHubClient implements APIClient {
owner: ctx().owner,
repo: ctx().repo,
resources: [BaseCommits, BaseComments, BasePulls],
logLevel: (getInput("log_level", { required: false }) ??
"warn") as LogLevel,
logLevel: "warn",
logger,
});
}
Expand Down
4 changes: 1 addition & 3 deletions src/compat/gitlab/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { logger } from "../../logger";
import type { APIClient, Comment, PullRequest } from "../api";
import { getInput } from "../input";
import { getGitLabContext as ctx } from "./context";
import { LogLevel } from "@stainless-api/gitlab-internal/client";

class GitLabClient implements APIClient {
private client: PartialGitLab<{
Expand All @@ -30,8 +29,7 @@ class GitLabClient implements APIClient {
apiToken: token,
baseURL: ctx().urls.api,
resources: [BaseCommits, BaseMergeRequests, BaseNotes],
logLevel: (getInput("log_level", { required: false }) ??
"warn") as LogLevel,
logLevel: "warn",
logger,
});
}
Expand Down
4 changes: 1 addition & 3 deletions src/wrapAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { getInput } from "./compat/input";
import { getStainlessAuth } from "./compat";
import { createAutoRefreshFetch, getStainlessClient } from "./stainless";
import { logger } from "./logger";
import { LogLevel } from "@stainless-api/sdk/client";

const accumulatedBuildIds = new Set<string>();

Expand Down Expand Up @@ -32,8 +31,7 @@ export function wrapAction(
stainless = getStainlessClient(actionType, {
project: projectName,
apiKey: auth.key,
logLevel: (getInput("log_level", { required: false }) ??
"warn") as LogLevel,
logLevel: "warn",
logger,
fetch: createAutoRefreshFetch(auth, getStainlessAuth),
});
Expand Down