github.com/gophercloud/gophercloud@v1.14.1/.github/workflows/check-pr-labels.yaml (about)

     1  name: Ready
     2  on:
     3    pull_request_target:
     4      types:
     5        - labeled
     6        - opened
     7        - reopened
     8        - synchronize
     9        - unlabeled
    10  
    11  jobs:
    12    hold:
    13      if: github.event.pull_request.merged == false
    14      runs-on: ubuntu-latest
    15      steps:
    16        - if: >
    17            contains(github.event.pull_request.labels.*.name, 'hold')
    18          run: 'false'
    19        - if: >
    20            !contains(github.event.pull_request.labels.*.name, 'hold')
    21          run: 'true'