Skip to content

Commit cdfa64d

Browse files
committed
refactor(e2e): remove PR comment steps - keep it simple
Removed all PR commenting steps. Results already show up in: - GitHub Actions UI - PR checks section No need for extra comments cluttering the PR.
1 parent b481383 commit cdfa64d

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

.github/workflows/e2e.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ on:
99
types: [labeled]
1010
branches: [ main, master ]
1111

12-
# Required for pull_request_target to comment on PRs
13-
permissions:
14-
contents: read
15-
pull-requests: write
16-
issues: write
17-
1812
concurrency:
1913
group: e2e-tests-${{ github.event.pull_request.number }}
2014
cancel-in-progress: true
@@ -74,18 +68,6 @@ jobs:
7468
timeout-minutes: 25
7569

7670
steps:
77-
- name: Add comment to PR
78-
continue-on-error: true
79-
uses: actions/github-script@v7
80-
with:
81-
script: |
82-
github.rest.issues.createComment({
83-
issue_number: ${{ github.event.pull_request.number }},
84-
owner: context.repo.owner,
85-
repo: context.repo.repo,
86-
body: '🔒 **E2E Tests Started**\n\nRunning full test suite with agent interaction.\n\nTriggered by: @${{ github.actor }}'
87-
})
88-
8971
- name: Checkout PR code
9072
uses: actions/checkout@v6
9173
with:
@@ -246,25 +228,6 @@ jobs:
246228
path: e2e/cypress/videos
247229
if-no-files-found: ignore
248230
retention-days: 7
249-
250-
- name: Comment test result on PR
251-
if: always()
252-
continue-on-error: true
253-
uses: actions/github-script@v7
254-
with:
255-
script: |
256-
const status = '${{ job.status }}';
257-
const icon = status === 'success' ? '✅' : '❌';
258-
const message = status === 'success'
259-
? 'All E2E tests passed (including agent interaction)!'
260-
: 'Some E2E tests failed. Check the workflow logs for details.';
261-
262-
github.rest.issues.createComment({
263-
issue_number: ${{ github.event.pull_request.number }},
264-
owner: context.repo.owner,
265-
repo: context.repo.repo,
266-
body: `${icon} **E2E Tests ${status}**\n\n${message}\n\n[View workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})`
267-
})
268231

269232
- name: Debug logs on failure
270233
if: failure()

0 commit comments

Comments
 (0)