Skip to content

Commit 2cf1db3

Browse files
committed
fix: restore any types for Jira API worklog integration
- Revert Record<string, unknown> back to any for worklog parameters - Add ESLint disable comments to document intentional any usage - Required for flexible Jira API parameter handling - Fixes TypeScript build errors in CI/CD pipeline
1 parent 3ebe190 commit 2cf1db3

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/controllers/atlassian.worklogs.controller.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ async function addWorklog(
213213
}
214214

215215
// Build request parameters
216-
const params: Record<string, unknown> = {
216+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
217+
const params: any = {
217218
timeSpentSeconds,
218219
started: options.started,
219220
};
@@ -294,7 +295,8 @@ async function updateWorklog(
294295
}
295296

296297
// Build update parameters
297-
const params: Record<string, unknown> = {};
298+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
299+
const params: any = {};
298300

299301
// Convert time spent to seconds if provided
300302
if (options.timeSpent) {
@@ -386,7 +388,8 @@ async function deleteWorklog(
386388
}
387389

388390
// Build delete parameters
389-
const params: Record<string, unknown> = {};
391+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
392+
const params: any = {};
390393

391394
// Handle estimate adjustment
392395
if (options.adjustEstimate) {

src/services/vendor.atlassian.issues.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ async function getWorklogs(
570570
*/
571571
async function addWorklog(
572572
issueIdOrKey: string,
573-
worklogData: Record<string, unknown>,
573+
worklogData: any, // eslint-disable-line @typescript-eslint/no-explicit-any
574574
): Promise<unknown> {
575575
const methodLogger = Logger.forContext(
576576
'services/vendor.atlassian.issues.service.ts',
@@ -665,7 +665,7 @@ async function addWorklog(
665665
async function updateWorklog(
666666
issueIdOrKey: string,
667667
worklogId: string,
668-
updateData: Record<string, unknown>,
668+
updateData: any, // eslint-disable-line @typescript-eslint/no-explicit-any
669669
): Promise<unknown> {
670670
const methodLogger = Logger.forContext(
671671
'services/vendor.atlassian.issues.service.ts',
@@ -727,7 +727,7 @@ async function updateWorklog(
727727
async function deleteWorklog(
728728
issueIdOrKey: string,
729729
worklogId: string,
730-
params: Record<string, unknown> = {},
730+
params: any = {}, // eslint-disable-line @typescript-eslint/no-explicit-any
731731
): Promise<void> {
732732
const methodLogger = Logger.forContext(
733733
'services/vendor.atlassian.issues.service.ts',

0 commit comments

Comments
 (0)