jira-sprinter 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +3 -3
- package/package.json +1 -1
- package/src/cli.ts +1 -1
- package/src/jira.ts +7 -6
package/dist/main.js
CHANGED
|
@@ -36636,8 +36636,8 @@ var Jira = class {
|
|
|
36636
36636
|
}
|
|
36637
36637
|
async setValues(issue2, values) {
|
|
36638
36638
|
const assigneeValue = values.assignee ? { [this.fields.assignee]: { name: values.assignee } } : {};
|
|
36639
|
-
const storyPointsValue = values.size ? { [this.fields.storyPoints]: values.size } : {};
|
|
36640
|
-
const sprintValue = values.sprint
|
|
36639
|
+
const storyPointsValue = values.size !== void 0 ? { [this.fields.storyPoints]: values.size } : {};
|
|
36640
|
+
const sprintValue = values.sprint !== void 0 ? { [this.fields.sprint]: values.sprint } : {};
|
|
36641
36641
|
await this.api.issues.editIssue({
|
|
36642
36642
|
issueIdOrKey: issue2,
|
|
36643
36643
|
fields: { ...assigneeValue, ...storyPointsValue, ...sprintValue }
|
|
@@ -49310,7 +49310,7 @@ var issueStatusSchema = external_exports2.union([
|
|
|
49310
49310
|
// src/cli.ts
|
|
49311
49311
|
function cli() {
|
|
49312
49312
|
const program2 = new Command();
|
|
49313
|
-
program2.name("jira-sprinter").description("\u{1F3C3} Small CLI tool to manage sprints in JIRA Board").version("1.0.
|
|
49313
|
+
program2.name("jira-sprinter").description("\u{1F3C3} Small CLI tool to manage sprints in JIRA Board").version("1.0.3");
|
|
49314
49314
|
program2.option("-b, --board [board]", "Jira Board ID", getDefaultValue("BOARD")).option(
|
|
49315
49315
|
"-a, --assignee [assignee]",
|
|
49316
49316
|
"Jira Assignee",
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -23,7 +23,7 @@ export function cli(): Command {
|
|
|
23
23
|
program
|
|
24
24
|
.name('jira-sprinter')
|
|
25
25
|
.description('🏃 Small CLI tool to manage sprints in JIRA Board')
|
|
26
|
-
.version('1.0.
|
|
26
|
+
.version('1.0.3');
|
|
27
27
|
|
|
28
28
|
program
|
|
29
29
|
.option('-b, --board [board]', 'Jira Board ID', getDefaultValue('BOARD'))
|
package/src/jira.ts
CHANGED
|
@@ -159,13 +159,14 @@ export class Jira {
|
|
|
159
159
|
const assigneeValue = values.assignee
|
|
160
160
|
? { [this.fields.assignee]: { name: values.assignee } }
|
|
161
161
|
: {};
|
|
162
|
-
const storyPointsValue =
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
const storyPointsValue =
|
|
163
|
+
values.size !== undefined
|
|
164
|
+
? { [this.fields.storyPoints]: values.size }
|
|
165
|
+
: {};
|
|
165
166
|
const sprintValue =
|
|
166
|
-
values.sprint
|
|
167
|
-
? {}
|
|
168
|
-
: {
|
|
167
|
+
values.sprint !== undefined
|
|
168
|
+
? { [this.fields.sprint]: values.sprint }
|
|
169
|
+
: {};
|
|
169
170
|
|
|
170
171
|
await this.api.issues.editIssue({
|
|
171
172
|
issueIdOrKey: issue,
|