Skip to content

Commit

Permalink
chore: add type to fix warnings of any
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol-Baranwal committed Oct 16, 2023
1 parent d32be4e commit a562743
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// import * as core from "@actions/core";
// import * as github from "@actions/github";

import core = require("@actions/core");
import github = require("@actions/github");
const core = require("@actions/core");
const github = require("@actions/github");

async function HandleMultipleIssues() {
try {
Expand Down Expand Up @@ -51,14 +51,14 @@ async function HandleMultipleIssues() {
core.notice("step 3.");

const previousIssueNumbers = authorIssues
.filter((issue) => issue.number !== context.issue.number) // Exclude the current issue
.map((issue) => issue.number);
.filter((issue: { number: any }) => issue.number !== context.issue.number) // Exclude the current issue
.map((issue: { number: any }) => issue.number);

if (previousIssueNumbers.length > 0) {
const issueNumberToLabel = context.issue.number;

const issueLinks = previousIssueNumbers
.map((issueNumber) => `#${issueNumber}`)
.map((issueNumber: any) => `#${issueNumber}`)
.join(", ");

// Check if label is an array and add multiple labels if needed
Expand Down

0 comments on commit a562743

Please sign in to comment.