Skip to content

Commit

Permalink
refactor: remove extra log of finalAction
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Nov 26, 2020
1 parent 5dbbf0a commit 06d05e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ export async function run(): Promise<void> {
groupConsoleLog('rawCommentBody', rawCommentBody, core.isDebug());
}

const finalAction = config.labels[labelIndex][`${labelEvent}`][`${eventType}`].action;
core.info(`[INFO] finalAction: ${finalAction}`);

// Render template
const commentBodyView = (() => {
if (eventName === 'issues') {
Expand Down Expand Up @@ -222,6 +219,7 @@ export async function run(): Promise<void> {
}

// Close or Open an issue
const finalAction = config.labels[labelIndex][`${labelEvent}`][`${eventType}`].action;
if (finalAction === 'close') {
await closeIssue(githubClient, issueNumber);
} else if (finalAction === 'open') {
Expand Down

0 comments on commit 06d05e4

Please sign in to comment.