@@ -190,27 +190,27 @@ jobs:
190
190
name : visual_diffs
191
191
path : visual_diffs
192
192
193
- - name : Comment PR with results
194
- if : github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
195
- uses : actions/github-script@v7
196
- with :
197
- github-token : ${{ secrets.GITHUB_TOKEN }}
198
- script : |
199
- const fs = require('fs');
200
- const results = JSON.parse(fs.readFileSync('visual_diffs/results.json', 'utf8'));
201
- const runUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`;
202
- let body = `### Visual Diff Summary\n\n[View Logs](${runUrl})\n\n`;
203
- body += `Total: ${results.summary.total}, Matches: ${results.summary.matches}, Diffs: ${results.summary.mismatches}, Skipped: ${results.summary.skipped}\n\n`;
204
- if (results.pages.length) {
205
- body += '| Page | Status |\n| --- | --- |\n';
206
- for (const p of results.pages) {
207
- if (p.status !== 'match') {
208
- body += `| ${p.path} | ${p.status} |\n`;
209
- }
210
- }
211
- }
212
- await github.rest.issues.createComment({
213
- ...context.repo,
214
- issue_number: context.issue.number,
215
- body
216
- });
193
+ # - name: Comment PR with results
194
+ # if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
195
+ # uses: actions/github-script@v7
196
+ # with:
197
+ # github-token: ${{ secrets.GITHUB_TOKEN }}
198
+ # script: |
199
+ # const fs = require('fs');
200
+ # const results = JSON.parse(fs.readFileSync('visual_diffs/results.json', 'utf8'));
201
+ # const runUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`;
202
+ # let body = `### Visual Diff Summary\n\n[View Logs](${runUrl})\n\n`;
203
+ # body += `Total: ${results.summary.total}, Matches: ${results.summary.matches}, Diffs: ${results.summary.mismatches}, Skipped: ${results.summary.skipped}\n\n`;
204
+ # if (results.pages.length) {
205
+ # body += '| Page | Status |\n| --- | --- |\n';
206
+ # for (const p of results.pages) {
207
+ # if (p.status !== 'match') {
208
+ # body += `| ${p.path} | ${p.status} |\n`;
209
+ # }
210
+ # }
211
+ # }
212
+ # await github.rest.issues.createComment({
213
+ # ...context.repo,
214
+ # issue_number: context.issue.number,
215
+ # body
216
+ # });
0 commit comments