@bragduck/cli 2.13.1 → 2.13.4
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/bin/bragduck.js +17 -8
- package/dist/bin/bragduck.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/bragduck.js
CHANGED
|
@@ -3380,9 +3380,7 @@ var JiraService = class {
|
|
|
3380
3380
|
buildJQL(options) {
|
|
3381
3381
|
const queries = [];
|
|
3382
3382
|
if (options.days) {
|
|
3383
|
-
queries.push(
|
|
3384
|
-
`(created >= -${options.days}d OR resolutiondate >= -${options.days}d OR updated >= -${options.days}d)`
|
|
3385
|
-
);
|
|
3383
|
+
queries.push(`updated >= -${options.days}d`);
|
|
3386
3384
|
}
|
|
3387
3385
|
if (options.author) {
|
|
3388
3386
|
if (options.author.includes("@")) {
|
|
@@ -3535,7 +3533,11 @@ var JiraService = class {
|
|
|
3535
3533
|
const limitedIssues = allIssues.slice(0, options.limit);
|
|
3536
3534
|
const commits2 = [];
|
|
3537
3535
|
for (const issue of limitedIssues) {
|
|
3538
|
-
const commit = await this.transformIssueToCommit(
|
|
3536
|
+
const commit = await this.transformIssueToCommit(
|
|
3537
|
+
issue,
|
|
3538
|
+
void 0,
|
|
3539
|
+
email2 || void 0
|
|
3540
|
+
);
|
|
3539
3541
|
commits2.push(commit);
|
|
3540
3542
|
}
|
|
3541
3543
|
return commits2;
|
|
@@ -3565,7 +3567,7 @@ var JiraService = class {
|
|
|
3565
3567
|
const email = await this.getCurrentUser();
|
|
3566
3568
|
const commits = [];
|
|
3567
3569
|
for (const issue of allIssues) {
|
|
3568
|
-
const commit = await this.transformIssueToCommit(issue, void 0, email);
|
|
3570
|
+
const commit = await this.transformIssueToCommit(issue, void 0, email || void 0);
|
|
3569
3571
|
commits.push(commit);
|
|
3570
3572
|
}
|
|
3571
3573
|
return commits;
|
|
@@ -3828,7 +3830,7 @@ var ConfluenceService = class {
|
|
|
3828
3830
|
const queries = [];
|
|
3829
3831
|
queries.push("type = page");
|
|
3830
3832
|
if (options.days) {
|
|
3831
|
-
queries.push(`
|
|
3833
|
+
queries.push(`lastModified > startOfDay("-${options.days}d")`);
|
|
3832
3834
|
}
|
|
3833
3835
|
if (options.author) {
|
|
3834
3836
|
if (options.author.includes("@")) {
|
|
@@ -3974,7 +3976,14 @@ var ConfluenceService = class {
|
|
|
3974
3976
|
break;
|
|
3975
3977
|
}
|
|
3976
3978
|
if (options.limit && allPages.length >= options.limit) {
|
|
3977
|
-
|
|
3979
|
+
const email2 = await this.getCurrentUser();
|
|
3980
|
+
const limitedPages = allPages.slice(0, options.limit);
|
|
3981
|
+
const commits2 = [];
|
|
3982
|
+
for (const page of limitedPages) {
|
|
3983
|
+
const commit = await this.transformPageToCommit(page, void 0, email2 || void 0);
|
|
3984
|
+
commits2.push(commit);
|
|
3985
|
+
}
|
|
3986
|
+
return commits2;
|
|
3978
3987
|
}
|
|
3979
3988
|
start += limit;
|
|
3980
3989
|
} catch (error) {
|
|
@@ -4001,7 +4010,7 @@ var ConfluenceService = class {
|
|
|
4001
4010
|
const email = await this.getCurrentUser();
|
|
4002
4011
|
const commits = [];
|
|
4003
4012
|
for (const page of allPages) {
|
|
4004
|
-
const commit = await this.transformPageToCommit(page, void 0, email);
|
|
4013
|
+
const commit = await this.transformPageToCommit(page, void 0, email || void 0);
|
|
4005
4014
|
commits.push(commit);
|
|
4006
4015
|
}
|
|
4007
4016
|
return commits;
|