@testomatio/reporter 0.8.0-beta.7 → 0.8.0-beta.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.
@@ -22,7 +22,9 @@ class GitHubPipe {
22
22
 
23
23
  if (!this.token || !this.ref || !this.repo) return;
24
24
  this.isEnabled = true;
25
- this.issue = this.ref.match(/refs\/pull\/(\d+)\/merge/)[1]
25
+ const matchedIssue = this.ref.match(/refs\/pull\/(\d+)\/merge/);
26
+ if (!matchedIssue) return;
27
+ this.issue = matchedIssue[1]
26
28
  this.start = new Date();
27
29
 
28
30
  if (process.env.DEBUG) {
@@ -114,7 +116,7 @@ class GitHubPipe {
114
116
  let body = summary;
115
117
 
116
118
  if (failures.length) {
117
- body += `<details>\n<summary>### 🟥 Failures (${failures.length})</summary>\n${failures.join('\n')} </details>`;
119
+ body += `\n<details>\n<summary><h3>🟥 Failures (${failures.length})</h4></summary>\n${failures.join('\n')} \n</details>\n`;
118
120
  }
119
121
 
120
122
  if (failures.length > 20) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "0.8.0-beta.7",
3
+ "version": "0.8.0-beta.9",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "repository": "git@github.com:testomatio/reporter.git",