Fix multi-tab agent reading wrong tab's navigation state #44502
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Hide preview bot comments | |
| on: | |
| issue_comment: | |
| types: [created, edited] | |
| permissions: | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| minimize: | |
| if: >- | |
| github.event.issue.pull_request && | |
| (github.event.comment.user.login == 'cloudflare-workers-and-pages[bot]' || | |
| github.event.comment.user.login == 'netlify[bot]') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Minimize comment | |
| uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 | |
| with: | |
| script: | | |
| const nodeId = context.payload.comment.node_id; | |
| await github.graphql(` | |
| mutation($id: ID!) { | |
| minimizeComment(input: { subjectId: $id, classifier: OUTDATED }) { | |
| minimizedComment { isMinimized } | |
| } | |
| } | |
| `, { id: nodeId }); |