Skip to content

Commit e0e655c

Browse files
committed
fix: Cast issueNumber string to number
1 parent 79c67ac commit e0e655c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/fix/src/fixIssue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Octokit } from '@octokit/core';
44
export async function fixIssue(octokit: Octokit, repoWithOwner: string, issueUrl: string) {
55
const owner = repoWithOwner.split('/')[0];
66
const repo = repoWithOwner.split('/')[1];
7-
const issueNumber = issueUrl.split('/').pop();
7+
const issueNumber = Number(issueUrl.split('/').pop());
88
// Check whether issues can be assigned to Copilot
99
const suggestedActorsResponse = await octokit.graphql<{
1010
repository: {

0 commit comments

Comments
 (0)