@bragduck/cli 2.13.5 → 2.13.6
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 +6 -10
- package/dist/bin/bragduck.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/bragduck.js
CHANGED
|
@@ -3364,12 +3364,12 @@ var JiraService = class {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
3366
|
/**
|
|
3367
|
-
* Get current user's
|
|
3367
|
+
* Get current user's account ID (for Jira Cloud) or username (for Jira Server)
|
|
3368
3368
|
*/
|
|
3369
3369
|
async getCurrentUser() {
|
|
3370
3370
|
try {
|
|
3371
3371
|
const user = await this.request("/rest/api/2/myself");
|
|
3372
|
-
return user.emailAddress;
|
|
3372
|
+
return user.accountId || user.name || user.emailAddress;
|
|
3373
3373
|
} catch {
|
|
3374
3374
|
return null;
|
|
3375
3375
|
}
|
|
@@ -3533,11 +3533,7 @@ var JiraService = class {
|
|
|
3533
3533
|
const limitedIssues = allIssues.slice(0, options.limit);
|
|
3534
3534
|
const commits2 = [];
|
|
3535
3535
|
for (const issue of limitedIssues) {
|
|
3536
|
-
const commit = await this.transformIssueToCommit(
|
|
3537
|
-
issue,
|
|
3538
|
-
void 0,
|
|
3539
|
-
email2 || void 0
|
|
3540
|
-
);
|
|
3536
|
+
const commit = await this.transformIssueToCommit(issue, void 0, email2 || void 0);
|
|
3541
3537
|
commits2.push(commit);
|
|
3542
3538
|
}
|
|
3543
3539
|
return commits2;
|
|
@@ -3809,12 +3805,12 @@ var ConfluenceService = class {
|
|
|
3809
3805
|
}
|
|
3810
3806
|
}
|
|
3811
3807
|
/**
|
|
3812
|
-
* Get current user's
|
|
3808
|
+
* Get current user's account ID (for Confluence Cloud) or username (for Server/DC)
|
|
3813
3809
|
*/
|
|
3814
3810
|
async getCurrentUser() {
|
|
3815
3811
|
try {
|
|
3816
|
-
const
|
|
3817
|
-
return
|
|
3812
|
+
const user = await this.request("/wiki/rest/api/user/current");
|
|
3813
|
+
return user.accountId || user.username || user.email;
|
|
3818
3814
|
} catch {
|
|
3819
3815
|
return null;
|
|
3820
3816
|
}
|