playwright-slack-report-burak 3.0.9 → 3.0.11

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.
@@ -98,10 +98,12 @@ class SlackReporter {
98
98
  try {
99
99
  // Get workflow run details
100
100
  const apiUrl = `https://api.github.com/repos/${repo}/actions/runs/${runId}/jobs`;
101
+ this.log(`🔍 [GitHub Actions Detection] API URL: ${apiUrl}`);
101
102
  const response = await axios.get(apiUrl, {
102
103
  headers: {
103
- 'Authorization': `token ${githubToken}`,
104
- 'Accept': 'application/vnd.github.v3+json'
104
+ 'Accept': 'application/vnd.github+json',
105
+ 'Authorization': `Bearer ${githubToken}`,
106
+ 'X-GitHub-Api-Version': '2022-11-28'
105
107
  },
106
108
  params: {
107
109
  per_page: 100
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.9",
35
+ "version": "3.0.11",
36
36
  "main": "index.js",
37
37
  "types": "dist/index.d.ts",
38
38
  "author": "Burak B. <burak.boluk@hotmail.com>",