@bragduck/cli 2.13.8 → 2.14.0
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 +3 -3
- package/dist/bin/bragduck.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/bragduck.js
CHANGED
|
@@ -3358,7 +3358,7 @@ var JiraService = class {
|
|
|
3358
3358
|
*/
|
|
3359
3359
|
async validateJiraInstance() {
|
|
3360
3360
|
try {
|
|
3361
|
-
await this.request("/rest/api/
|
|
3361
|
+
await this.request("/rest/api/3/myself");
|
|
3362
3362
|
} catch (error) {
|
|
3363
3363
|
if (error instanceof JiraError) {
|
|
3364
3364
|
throw error;
|
|
@@ -3374,7 +3374,7 @@ var JiraService = class {
|
|
|
3374
3374
|
*/
|
|
3375
3375
|
async getCurrentUser() {
|
|
3376
3376
|
try {
|
|
3377
|
-
const user = await this.request("/rest/api/
|
|
3377
|
+
const user = await this.request("/rest/api/3/myself");
|
|
3378
3378
|
return user.accountId || user.name || user.emailAddress;
|
|
3379
3379
|
} catch {
|
|
3380
3380
|
return null;
|
|
@@ -3509,7 +3509,7 @@ var JiraService = class {
|
|
|
3509
3509
|
);
|
|
3510
3510
|
break;
|
|
3511
3511
|
}
|
|
3512
|
-
const endpoint = `/rest/api/
|
|
3512
|
+
const endpoint = `/rest/api/3/search?jql=${encodeURIComponent(jql)}&startAt=${startAt}&maxResults=${maxResults}&fields=${fields.join(",")}`;
|
|
3513
3513
|
try {
|
|
3514
3514
|
const response = await this.request(endpoint);
|
|
3515
3515
|
if (response.issues.length === 0) {
|