diff --git a/apps/docs-site/docs/API/@code-rub/jira/interfaces/models.JiraPluginConfig.md b/apps/docs-site/docs/API/@code-rub/jira/interfaces/models.JiraPluginConfig.md index 365db01..be16bd6 100644 --- a/apps/docs-site/docs/API/@code-rub/jira/interfaces/models.JiraPluginConfig.md +++ b/apps/docs-site/docs/API/@code-rub/jira/interfaces/models.JiraPluginConfig.md @@ -25,7 +25,7 @@ ___ #### Index signature -▪ [key: `string`]: `string` +▪ [key: `string`]: `unknown` #### Defined in diff --git a/packages/jira/src/create-issue.ts b/packages/jira/src/create-issue.ts index 5ccff9c..7f2f1a0 100644 --- a/packages/jira/src/create-issue.ts +++ b/packages/jira/src/create-issue.ts @@ -4,7 +4,7 @@ import { JiraPluginConfig } from './models/config'; export async function createIssue( jira: JiraApi, config: JiraPluginConfig, - jiraUserId: JiraApi.UserObject, + jiraUser: JiraApi.UserObject, filePath: string ) { const summary = config.summaryTemplate.replace(/\{fileName\}/g, filePath); @@ -21,9 +21,7 @@ export async function createIssue( issuetype: { name: config.issueType, }, - assignee: { - id: jiraUserId, - }, + assignee: jiraUser, ...config.extraFields }, }; diff --git a/packages/jira/src/models/config.ts b/packages/jira/src/models/config.ts index ff3caf3..0dd19a4 100644 --- a/packages/jira/src/models/config.ts +++ b/packages/jira/src/models/config.ts @@ -6,6 +6,6 @@ export interface JiraPluginConfig { issueType: string; host: string; extraFields: { - [key: string]: string + [key: string]: unknown } }