@reporters/github 1.7.2 → 1.8.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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -95,9 +95,10 @@ module.exports = async function githubReporter(source) {
95
95
  } case 'test:diagnostic':
96
96
  if (event.data.file === undefined
97
97
  || event.data.line === undefined
98
- || event.data.column === undefined) {
98
+ || event.data.column === undefined
99
+ || (event.data.line === 1 && event.data.column === 1)) {
99
100
  diagnostics.push(event.data.message);
100
- } else {
101
+ } else if (process.env.GITHUB_ACTIONS_REPORTER_VERBOSE) {
101
102
  core.notice(event.data.message, extractLocation(event.data));
102
103
  }
103
104
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reporters/github",
3
- "version": "1.7.2",
3
+ "version": "1.8.0",
4
4
  "description": "A github actions reporter for `node:test`",
5
5
  "type": "commonjs",
6
6
  "keywords": [