Skip to content

Commit

Permalink
chore: add export and action core as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol-Baranwal committed Oct 16, 2023
1 parent bc72c29 commit 31e0215
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use strict";
// import * as core from "@actions/core";
// import * as github from "@actions/github";
Object.defineProperty(exports, "__esModule", { value: true });
const core = require("@actions/core");
const github = require("@actions/github");
async function HandleMultipleIssues() {
Expand All @@ -21,9 +20,9 @@ async function HandleMultipleIssues() {
core.notice("step 1.");
// Retrieve custom inputs
const label = core.getInput("label") || "up for grabs"; // Set default label
const issueNumber = core.getInput("issueNumber") === "true"; // converts to boolean
const issueNumber = core.getInput("issueNumber") === "true" || false; // converts to boolean
const comment = core.getInput("comment");
const close = core.getInput("close") === "true";
const close = core.getInput("close") === "true" || false;
const checkComment = comment.trim() !== "";
// Check if the same author has open issues
const author = (_a = context.payload.issue) === null || _a === void 0 ? void 0 : _a.user.login;
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@
"comment",
"multiple issues"
],
"exports": {
".": "./dist/index.js"
},
"author": "Anmol-Baranwal <[email protected]> (https://github.com/Anmol-Baranwal)",
"license": "GPL-3.0-only",
"dependencies": {
"@actions/core": "^1.10.1"
},
"devDependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
Expand Down

0 comments on commit 31e0215

Please sign in to comment.