bjira 0.0.18 → 0.0.19

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/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Andrea Marchesini <baku@bnode.dev>
3
+ Copyright (c) 2021-2022 Andrea Marchesini <baku@bnode.dev>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -15,11 +15,11 @@ jira settings.
15
15
 
16
16
  ```
17
17
  $ bjira init
18
- ? Provide your jira host: your-config.atlassian.net
18
+ ? Provide your jira host: your-domain.atlassian.net
19
19
  ? Please provide your jira username: username
20
20
  ? API token: [hidden]
21
21
  ? Enable HTTPS Protocol? Yes
22
- Config file succesfully created in: /home/baku/.bjira.json
22
+ Config file succesfully created in: /home/<username>/.bjira.json
23
23
  ```
24
24
 
25
25
  ## How to use it
@@ -63,10 +63,11 @@ Jira is strongly configurable via custom fields. You can retrieve the list of cu
63
63
  bjira field listall
64
64
  ```
65
65
 
66
- If you want to see some of them in the issue report, add them:
66
+ If you want to see some of them in the issue report, add them for the project (FOO) and the issue type (Story):
67
67
 
68
68
  ```
69
- bjira field add "Story Points"
69
+ bjira field add FOO Story "Story Points"
70
70
  ```
71
71
 
72
72
  Any custom fields added to the list will be shown in the issue report (See `bjira show`).
73
+ You can also set custom fields using `bira set custom `Story Points' ISSUE-ID`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bjira",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "A simple jira CLI tool",
5
5
  "main": "src/index.js",
6
6
  "author": {
package/src/ask.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/attachment.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
@@ -25,7 +25,7 @@ class Attachment extends Command {
25
25
  const issue = Issue.replaceFields(result, resultFields);
26
26
 
27
27
  const attachment = issue.fields['Attachment'].find(attachment => attachment.id === attachmentId);
28
- const attachmentData = await jira.api.downloadAttachment(attachment);
28
+ const attachmentData = await jira.spin('Retriving attachment...', jira.api.downloadAttachment(attachment));
29
29
  process.stdout.write(attachmentData);
30
30
  });
31
31
 
@@ -34,4 +34,4 @@ class Attachment extends Command {
34
34
  }
35
35
  };
36
36
 
37
- export default Attachment;
37
+ export default Attachment;
package/src/command.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/comment.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/create.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/field.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
3
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
4
4
  //
5
5
  // SPDX-License-Identifier: MIT
6
6
 
package/src/init.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/issue.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
@@ -153,6 +153,9 @@ class Issue extends Command {
153
153
  [
154
154
  'Mime-type', attachment.mimeType
155
155
  ],
156
+ [
157
+ 'Created on', attachment['Created']
158
+ ],
156
159
  ]);
157
160
  });
158
161
  }
package/src/jira.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/preset.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/project.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/query.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/run.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/set.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/sprint.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/table.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/user.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/src/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2021 Andrea Marchesini <baku@bnode.dev>
1
+ // SPDX-FileCopyrightText: 2021-2022 Andrea Marchesini <baku@bnode.dev>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/aqtinstall.log DELETED
File without changes
package/nohup.out DELETED
File without changes