@bragduck/cli 2.13.4 → 2.13.5
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 +11 -14
- package/dist/bin/bragduck.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/bragduck.js
CHANGED
|
@@ -3383,15 +3383,10 @@ var JiraService = class {
|
|
|
3383
3383
|
queries.push(`updated >= -${options.days}d`);
|
|
3384
3384
|
}
|
|
3385
3385
|
if (options.author) {
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
} else {
|
|
3391
|
-
queries.push(
|
|
3392
|
-
`(creator = "${options.author}" OR reporter = "${options.author}" OR assignee = "${options.author}")`
|
|
3393
|
-
);
|
|
3394
|
-
}
|
|
3386
|
+
const escapedAuthor = options.author.replace(/"/g, '\\"');
|
|
3387
|
+
queries.push(
|
|
3388
|
+
`(creator = "${escapedAuthor}" OR reporter = "${escapedAuthor}" OR assignee = "${escapedAuthor}")`
|
|
3389
|
+
);
|
|
3395
3390
|
} else {
|
|
3396
3391
|
queries.push(
|
|
3397
3392
|
"(creator = currentUser() OR reporter = currentUser() OR assignee = currentUser())"
|
|
@@ -3475,6 +3470,11 @@ var JiraService = class {
|
|
|
3475
3470
|
* Fetch issues with optional filtering
|
|
3476
3471
|
*/
|
|
3477
3472
|
async getIssues(options = {}) {
|
|
3473
|
+
if (options.author) {
|
|
3474
|
+
logger.debug(`Fetching issues for author: ${options.author}`);
|
|
3475
|
+
} else {
|
|
3476
|
+
logger.debug("Fetching issues for current user (no author specified)");
|
|
3477
|
+
}
|
|
3478
3478
|
const jql = this.buildJQL(options);
|
|
3479
3479
|
logger.debug(`Using JQL query: ${jql}`);
|
|
3480
3480
|
const fields = [
|
|
@@ -3833,11 +3833,8 @@ var ConfluenceService = class {
|
|
|
3833
3833
|
queries.push(`lastModified > startOfDay("-${options.days}d")`);
|
|
3834
3834
|
}
|
|
3835
3835
|
if (options.author) {
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
} else {
|
|
3839
|
-
queries.push(`(creator = "${options.author}" or contributor = "${options.author}")`);
|
|
3840
|
-
}
|
|
3836
|
+
const escapedAuthor = options.author.replace(/"/g, '\\"');
|
|
3837
|
+
queries.push(`(creator = "${escapedAuthor}" or contributor = "${escapedAuthor}")`);
|
|
3841
3838
|
} else {
|
|
3842
3839
|
queries.push("(creator = currentUser() or contributor = currentUser())");
|
|
3843
3840
|
}
|