playwright-slack-report-burak 3.0.7 → 3.0.8

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.
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
 
11
11
  // Helper function to get build URL and CI platform name
12
12
  const getBuildInfo = () => {
13
- if (process.env.GITHUB_ACTIONS || process.env.safetywingtest_GITHUB_TOKEN) {
13
+ if (process.env.GITHUB_ACTIONS || process.env.SAFETYWINGTEST_GITHUB_TOKEN) {
14
14
  const repo = process.env.GITHUB_REPOSITORY;
15
15
  const runId = process.env.GITHUB_RUN_ID;
16
16
  const serverUrl = process.env.GITHUB_SERVER_URL || 'https://github.com';
@@ -429,12 +429,12 @@ class ResultsParser {
429
429
  }
430
430
 
431
431
  async fetchArtifactFromGitHubActions(i, file, filePath) {
432
- const githubToken = process.env.safetywingtest_GITHUB_TOKEN;
432
+ const githubToken = process.env.SAFETYWINGTEST_GITHUB_TOKEN;
433
433
  const repo = process.env.GITHUB_REPOSITORY;
434
434
  const runId = process.env.GITHUB_RUN_ID;
435
435
 
436
436
  if (!githubToken || !repo) {
437
- console.error('GitHub Actions: Missing safetywingtest_GITHUB_TOKEN or GITHUB_REPOSITORY');
437
+ console.error('GitHub Actions: Missing SAFETYWINGTEST_GITHUB_TOKEN or GITHUB_REPOSITORY');
438
438
  return;
439
439
  }
440
440
 
@@ -80,12 +80,12 @@ class SlackReporter {
80
80
  if (!process.env.GITHUB_ACTIONS || process.env.GITHUB_ACTIONS !== 'true') {
81
81
  return null;
82
82
  }
83
- const githubToken = process.env.safetywingtest_GITHUB_TOKEN;
83
+ const githubToken = process.env.SAFETYWINGTEST_GITHUB_TOKEN;
84
84
  const repo = process.env.GITHUB_REPOSITORY;
85
85
  const runId = process.env.GITHUB_RUN_ID;
86
86
  const currentJobId = process.env.GITHUB_JOB;
87
87
  if (!githubToken || !repo || !runId) {
88
- this.log(`🔍 [GitHub Actions Detection] Missing required env vars: safetywingtest_GITHUB_TOKEN=${!!githubToken}, GITHUB_REPOSITORY=${!!repo}, GITHUB_RUN_ID=${!!runId}`);
88
+ this.log(`🔍 [GitHub Actions Detection] Missing required env vars: SAFETYWINGTEST_GITHUB_TOKEN=${!!githubToken}, GITHUB_REPOSITORY=${!!repo}, GITHUB_RUN_ID=${!!runId}`);
89
89
  return null;
90
90
  }
91
91
  if (!axios) {
@@ -270,7 +270,7 @@ class SlackReporter {
270
270
  this.log(`💡 env:`);
271
271
  this.log(`💡 MATRIX_SHARD: $\{\{ strategy.job-index \}\} # 0-based (only shard 0 posts)`);
272
272
  this.log(`💡 MATRIX_COUNT: $\{\{ strategy.job-total \}\}`);
273
- this.log(`💡 OR ensure safetywingtest_GITHUB_TOKEN has workflow permissions for API detection`);
273
+ this.log(`💡 OR ensure SAFETYWINGTEST_GITHUB_TOKEN has workflow permissions for API detection`);
274
274
  return;
275
275
  }
276
276
 
package/package.json CHANGED
@@ -32,7 +32,7 @@
32
32
  "lint-fix": "npx eslint . --ext .ts --fix"
33
33
  },
34
34
  "name": "playwright-slack-report-burak",
35
- "version": "3.0.7",
35
+ "version": "3.0.8",
36
36
  "main": "index.js",
37
37
  "types": "dist/index.d.ts",
38
38
  "author": "Burak B. <burak.boluk@hotmail.com>",