chore(deps): bump QuantStrategyLab/QuantPlatformKit/.github/workflows/reusable-drift-check.yml from 4f8465b28a6787d39d21e50f9d95a77841d6ad56 to 9a31aadaeb4ff4acbbc392d9a8e350acee95ecee #150
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 Codex Rate Limit Comments | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| jobs: | |
| hide-comment: | |
| runs-on: ubuntu-latest | |
| if: > | |
| github.event.comment.user.login == 'chatgpt-codex-connector[bot]' && | |
| ( | |
| contains(github.event.comment.body, 'usage limit') || | |
| contains(github.event.comment.body, 'rate limit') || | |
| contains(github.event.comment.body, 'quota') || | |
| contains(github.event.comment.body, 'limit reached') || | |
| contains(github.event.comment.body, 'try again later') | |
| ) | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Minimize comment | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| const mutation = ` | |
| mutation($id: ID!) { | |
| minimizeComment(input: {subjectId: $id, classifier: OFF_TOPIC}) { | |
| minimizedComment { isMinimized } | |
| } | |
| } | |
| `; | |
| await github.graphql(mutation, { id: context.payload.comment.node_id }); | |
| console.log('Minimized codex rate-limit comment:', context.payload.comment.id); |