mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
lint: move eslint-native rules to oxlint (#6449)
* Update linting configuration and fix related issues * Fix type coercion for comment ID in check-first-comment.js to ensure proper comparison with summary comment IDs
This commit is contained in:
committed by
GitHub
parent
80bb888bae
commit
07fbcebb6a
@@ -6,7 +6,7 @@ import fs from 'fs';
|
||||
const token = process.env.GITHUB_TOKEN;
|
||||
const repo = process.env.GITHUB_REPOSITORY;
|
||||
const issueNumber = process.env.GITHUB_EVENT_ISSUE_NUMBER;
|
||||
const commentId = process.env.GITHUB_EVENT_COMMENT_ID;
|
||||
const commentId = String(process.env.GITHUB_EVENT_COMMENT_ID);
|
||||
|
||||
if (!token || !repo || !issueNumber || !commentId) {
|
||||
console.log('Missing required environment variables');
|
||||
@@ -51,7 +51,7 @@ async function checkFirstComment() {
|
||||
|
||||
const isFirstSummaryComment =
|
||||
coderabbitSummaryComments.length === 1 &&
|
||||
coderabbitSummaryComments[0].id == commentId;
|
||||
String(coderabbitSummaryComments[0].id) === commentId;
|
||||
|
||||
console.log(
|
||||
`CodeRabbit summary comments found: ${coderabbitSummaryComments.length}`,
|
||||
|
||||
Reference in New Issue
Block a user