@bragduck/cli 2.14.0 → 2.15.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 +6 -2
- package/dist/bin/bragduck.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/bragduck.js
CHANGED
|
@@ -3509,7 +3509,7 @@ var JiraService = class {
|
|
|
3509
3509
|
);
|
|
3510
3510
|
break;
|
|
3511
3511
|
}
|
|
3512
|
-
const endpoint = `/rest/api/3/search?jql=${encodeURIComponent(jql)}&startAt=${startAt}&maxResults=${maxResults}&fields=${fields.join(",")}`;
|
|
3512
|
+
const endpoint = `/rest/api/3/search/jql?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) {
|
|
@@ -4742,6 +4742,10 @@ async function syncSingleService(sourceType, options, TOTAL_STEPS) {
|
|
|
4742
4742
|
succeedStepSpinner(repoSpinner, 2, TOTAL_STEPS, `Repository: ${theme.value(repoInfo.fullName)}`);
|
|
4743
4743
|
logger.log("");
|
|
4744
4744
|
let days = options.days;
|
|
4745
|
+
if (!days && options.today) {
|
|
4746
|
+
days = 1;
|
|
4747
|
+
logger.debug("Using --today flag: scanning last 24 hours (1 day)");
|
|
4748
|
+
}
|
|
4745
4749
|
if (!days) {
|
|
4746
4750
|
const defaultDays = storageService.getConfig("defaultCommitDays");
|
|
4747
4751
|
days = await promptDaysToScan(defaultDays);
|
|
@@ -5842,7 +5846,7 @@ program.command("auth [subcommand]").description("Manage authentication (subcomm
|
|
|
5842
5846
|
process.exit(1);
|
|
5843
5847
|
}
|
|
5844
5848
|
});
|
|
5845
|
-
program.command("sync").description("Sync work items and create brags").option("-d, --days <number>", "Number of days to scan", (val) => parseInt(val, 10)).option("-a, --all", "Include all items (not just current user)").option("-s, --source <type>", "Explicit source type (github)").action(async (options) => {
|
|
5849
|
+
program.command("sync").description("Sync work items and create brags").option("-d, --days <number>", "Number of days to scan", (val) => parseInt(val, 10)).option("-t, --today", "Scan the last 24 hours (shorthand for --days 1)").option("-a, --all", "Include all items (not just current user)").option("-s, --source <type>", "Explicit source type (github)").action(async (options) => {
|
|
5846
5850
|
try {
|
|
5847
5851
|
await syncCommand(options);
|
|
5848
5852
|
} catch (error) {
|