Skip to content

Commit

Permalink
Converted all noitce() calls to info() calls (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
CatChen authored Aug 28, 2022
1 parent 321f6a2 commit d6a9250
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/index.js

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

6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { context } from "@actions/github";
import { info, notice, error, setFailed, getInput } from "@actions/core";
import { info, error, setFailed, getInput } from "@actions/core";
import { PullRequest } from "@octokit/webhooks-definitions/schema";
import { getOctokit } from "./getOcktokit";
import { getMergeMethod } from "./getMergeMethod";
Expand Down Expand Up @@ -158,7 +158,7 @@ async function run(): Promise<void> {

const job = context.job;
const timeout = parseInt(getInput("timeout"), 10);
notice(`Current job: ${job}`);
info(`Current job: ${job}`);
let checksCompleted = false;
while (!checksCompleted) {
const checkRuns = await getCheckRuns(
Expand Down Expand Up @@ -224,7 +224,7 @@ async function run(): Promise<void> {
}

const mergeMethod = getMergeMethod();
notice(`Merging with merge method: ${mergeMethod}`);
info(`Merging with merge method: ${mergeMethod}`);
await mergePullRequest(owner, repo, pullRequestNumber, mergeMethod, octokit);
}

Expand Down

0 comments on commit d6a9250

Please sign in to comment.