Skip to content

Commit

Permalink
fix(jira): should lookup users by id (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder authored Feb 10, 2022
1 parent 04b3a38 commit 2508ef9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ___

#### Index signature

[key: `string`]: `string`
[key: `string`]: `unknown`

#### Defined in

Expand Down
6 changes: 2 additions & 4 deletions packages/jira/src/create-issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -21,9 +21,7 @@ export async function createIssue(
issuetype: {
name: config.issueType,
},
assignee: {
id: jiraUserId,
},
assignee: jiraUser,
...config.extraFields
},
};
Expand Down
2 changes: 1 addition & 1 deletion packages/jira/src/models/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export interface JiraPluginConfig {
issueType: string;
host: string;
extraFields: {
[key: string]: string
[key: string]: unknown
}
}

0 comments on commit 2508ef9

Please sign in to comment.