Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Mercer <henry.mercer@me.com>
  • Loading branch information
mbg and henrymercer authored Jun 13, 2023
1 parent 7c5757a commit fa9ebea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pr-checks/checks/resolve-environment-action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "resolve-environment-action"
name: "Resolve environment"
description: "Tests that the resolve-environment action works for Go"
versions: ["nightly-latest"]
steps:
Expand Down
1 change: 0 additions & 1 deletion src/codeql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ export interface ResolveQueriesOutput {
export interface ResolveBuildEnvironmentOutput {
configuration?: {
[language: string]: {
os?: unknown;
[key: string]: unknown;
};
};
Expand Down
4 changes: 2 additions & 2 deletions src/resolve-environment-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ async function run() {
core.setOutput("environment", result);
} catch (unwrappedError) {
const error = wrapError(unwrappedError);
core.setFailed(error.message);
core.setFailed(`Failed to resolve a build environment suitable for automatically building your code. ${error.message}`);
await sendStatusReport(
await createStatusReportBase(
ACTION_NAME,
"aborted",
getActionsStatus(error),
startedAt,
error.message,
error.stack
Expand Down
4 changes: 2 additions & 2 deletions src/resolve-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export async function runResolveBuildEnvironment(
logger.startGroup(
`Attempting to resolve build environment for ${language} in ${workingDir}`
);
const codeQL = await getCodeQL(cmd);
const result = await codeQL.resolveBuildEnvironment(workingDir, language);
const codeql = await getCodeQL(cmd);
const result = await codeql.resolveBuildEnvironment(workingDir, language);
logger.endGroup();
return result;
}

0 comments on commit fa9ebea

Please sign in to comment.