Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const fileExt = (data) => {
ext = 'ipa' /* diawi urls don't contain file extension */
} else if (data.includes('allure')) {
ext = 'rpt' /* three-letter extensions just look nicer */
} else if (data.includes('benchmark')) {
ext = 'prf' /* performance benchmark dashboard link */
} else if (data.endsWith('tar.gz')) {
ext = 'tgz' /* three-letter extensions just look nicer */
} else if (data.endsWith('consoleText') || data == 'log') {
Expand All @@ -38,6 +40,7 @@ const fileIcon = (data) => {
case 'exe': return ':cd:';
case 'dmg': return ':apple:';
case 'rpt': return ':bar_chart:';
case 'prf': return ':bar_chart:';
case 'log': return ':page_facing_up:';
default: return ':package:';
}
Expand Down
6 changes: 3 additions & 3 deletions test/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ const COMMENT_FOLDED = `
|-|-|-|-|-|-|-|
| :heavy_check_mark: | COMMIT-2 | [8](URL-8/) | 2018-12-20 08:32:34 | DURATION-8 | \`PLATFORM-8\` | [:package:\`tgz\`](https://example.org/StatusIm-123-456-abc-pr.tar.gz) |
| :heavy_multiplication_x: | COMMIT-2 | [9](URL-9/) | 2018-12-20 08:33:31 | DURATION-9 | \`PLATFORM-9\` | [:bar_chart:\`rpt\`](https://ci.example.org/job/path/allure/) |
| :heavy_check_mark: | COMMIT-2 | [10](URL-10/) | 2018-12-20 08:34:27 | DURATION-10 | \`PLATFORM-10\` | [:robot:\`apk\`](https://example.org/StatusIm-123-456-abc-pr.apk) [:calling:](https://quickchart.io/qr?text=https%3A%2F%2Fexample.org%2FStatusIm-123-456-abc-pr.apk&size=400x400&errorCorrectionLevel=L)|
| :heavy_check_mark: | COMMIT-2 | [11](URL-11/) | 2018-12-20 08:35:24 | DURATION-11 | \`PLATFORM-11\` | [:cd:\`exe\`](https://example.org/StatusIm-123-456-abc-pr.exe) |
| :heavy_check_mark: | COMMIT-2 | [10](URL-10/) | 2018-12-20 08:34:27 | DURATION-10 | \`PLATFORM-10\` | [:bar_chart:\`prf\`](https://example.org/benchmarks/) |
| :heavy_check_mark: | COMMIT-2 | [11](URL-11/) | 2018-12-20 08:35:24 | DURATION-11 | \`PLATFORM-11\` | [:robot:\`apk\`](https://example.org/StatusIm-123-456-abc-pr.apk) [:calling:](https://quickchart.io/qr?text=https%3A%2F%2Fexample.org%2FStatusIm-123-456-abc-pr.apk&size=400x400&errorCorrectionLevel=L)|
| | | | | | | |
| :x: | COMMIT-3 | [12](URL-12/) | 2018-12-20 08:36:21 | DURATION-12 | \`PLATFORM-12\` | [:page_facing_up:\`log\`](URL-12/consoleText) |
| :heavy_multiplication_x: | COMMIT-3 | [12](URL-12/) | 2018-12-20 08:36:21 | DURATION-12 | \`PLATFORM-12\` | [:cd:\`exe\`](https://example.org/StatusIm-123-456-abc-pr.exe) |
`

describe('Comments', () => {
Expand Down
1 change: 1 addition & 0 deletions test/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const PKG_URLS = [
null,
'https://example.org/StatusIm-123-456-abc-pr.tar.gz',
'https://ci.example.org/job/path/allure/',
'https://example.org/benchmarks/',
]

/* example valid build */
Expand Down
Loading