Skip to content

Update mshv-ioctls requirement from =0.2.1 to =0.3.1 #31

Update mshv-ioctls requirement from =0.2.1 to =0.3.1

Update mshv-ioctls requirement from =0.2.1 to =0.3.1 #31

Workflow file for this run

name: Label Checker
on:
pull_request:
branches: dev
types: [opened, labeled, unlabeled, synchronize, reopened]
permissions:
pull-requests: read
contents: read
jobs:
check-labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for specific labels
run: |
PR_NUMBER=$(echo ${{ github.event.pull_request.number }})
LABELS_JSON=$(gh pr view $PR_NUMBER --json labels -q '.labels.[] | .name')
REQUIRED_LABELS=("chore" "ignore" "breaking-change" "enhancement" "feature" "dependencies" "bug" "security" "performance" "refactor" "testing" "documentation" "github-actions")
for REQUIRED_LABEL in "${REQUIRED_LABELS[@]}"; do
if echo "$LABELS_JSON" | grep -q "$REQUIRED_LABEL"; then
echo "One of the required labels is present"
exit 0
fi
done
echo "None of the required labels are present"
exit 1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}