| # Copyright 2013 The Flutter Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| name: No Response | |
| on: | |
| schedule: | |
| # Schedule for every 15 minutes. | |
| - cron: '*/15 * * * *' | |
| # By specifying the access of one of the scopes, all of those that are not | |
| # specified are set to 'none'. | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| noResponse: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository == 'flutter/flutter' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: No Response | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| with: | |
| github-token: ${{ github.token }} | |
| script: | | |
| const script = require('./.github/scripts/no-response.js'); | |
| await script({github, context}); |