1name: Nitpicker 2 3on: 4 pull_request_target: 5 types: [opened, reopened] 6 branches: [main] 7 8 pull_request: 9 types: [opened, reopened] 10 branches: [gh/**/base] 11 12jobs: 13 triage: 14 permissions: 15 contents: read 16 pull-requests: write 17 runs-on: ubuntu-latest 18 # Do not comment on nightly builds PR 19 if: ${{ github.event.pull_request.number != 26921 && github.repository_owner == 'pytorch' }} 20 steps: 21 - name: Checkout PyTorch 22 uses: pytorch/pytorch/.github/actions/checkout-pytorch@release/2.5 23 - uses: ethanis/nitpicker@v1 24 with: 25 nitpicks: '.github/nitpicks.yml' 26 token: "${{ secrets.GITHUB_TOKEN }}" 27 28concurrency: 29 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }} 30 cancel-in-progress: true 31