@automatify-au/cli 0.1.8 → 0.1.9
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/README.md +2 -0
- package/dist/automatify.cjs +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -183,6 +183,8 @@ Upload without a Jira comment:
|
|
|
183
183
|
automatify testops allure upload ABC-123 ./allure-report.zip --no-comment
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
+
Normal output prints the Jira issue, attachment filename, attachment id, and attachment URL when Jira returns them.
|
|
187
|
+
|
|
186
188
|
Machine-readable output:
|
|
187
189
|
```bash
|
|
188
190
|
automatify testops allure upload ABC-123 ./allure-report.zip --dry-run --json
|
package/dist/automatify.cjs
CHANGED
|
@@ -12700,6 +12700,18 @@ function formatHumanSummary(summary) {
|
|
|
12700
12700
|
`Unknown: ${counts.unknown}`
|
|
12701
12701
|
];
|
|
12702
12702
|
}
|
|
12703
|
+
function formatHumanAttachment(attachment) {
|
|
12704
|
+
const lines = [`Attachment: ${attachment.filename}`];
|
|
12705
|
+
if (attachment.id) {
|
|
12706
|
+
lines.push(`Attachment ID: ${attachment.id}`);
|
|
12707
|
+
}
|
|
12708
|
+
if (attachment.content) {
|
|
12709
|
+
lines.push(`Attachment URL: ${attachment.content}`);
|
|
12710
|
+
} else if (attachment.self) {
|
|
12711
|
+
lines.push(`Attachment API URL: ${attachment.self}`);
|
|
12712
|
+
}
|
|
12713
|
+
return lines;
|
|
12714
|
+
}
|
|
12703
12715
|
function buildJsonOutput(params) {
|
|
12704
12716
|
const attachment = {
|
|
12705
12717
|
filename: params.attachment.filename
|
|
@@ -12863,6 +12875,7 @@ function createAllureHandler(deps = {}) {
|
|
|
12863
12875
|
...verbose ? [`Summary path: ${summary.summaryPath}`] : [],
|
|
12864
12876
|
"",
|
|
12865
12877
|
`Uploaded to Jira issue ${issueKey}.`,
|
|
12878
|
+
...formatHumanAttachment(attachment),
|
|
12866
12879
|
commentAdded ? "Comment added." : "Comment skipped."
|
|
12867
12880
|
]
|
|
12868
12881
|
};
|