Download PowerShell-master/.github/workflows/labels.yml from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 927 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/.github/workflows/labels.yml
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/.github/workflows/labels.yml
-
curl -L -o labels.yml https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/.github/workflows/labels.yml
927 Bytes
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| name: Verify PR Labels | |
| on: | |
| pull_request: | |
| types: [opened, reopened, edited, labeled, unlabeled, synchronize] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| verify-labels: | |
| if: github.repository_owner == 'PowerShell' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Verify PR has label starting with 'cl-' | |
| id: verify-labels | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| script: | | |
| const labels = context.payload.pull_request.labels.map(label => label.name.toLowerCase()); | |
| if (!labels.some(label => label.startsWith('cl-'))) { | |
| core.setFailed("Every PR must have at least one label starting with 'cl-'."); | |
| } | |