Fix: Removes vortex_unwrap completely in favor of vortex_expect #10785
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Labels | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| # Trigger on these PR activities | |
| types: [opened, reopened, synchronize, labeled, unlabeled] | |
| jobs: | |
| check_changelog_label: | |
| name: Validate Changelog Label | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read # Grant permission to read PR information | |
| steps: | |
| - name: Get PR Labels from API | |
| id: get_labels_api | |
| uses: octokit/[email protected] # Use an action to make API requests | |
| with: | |
| route: GET /repos/{owner}/{repo}/issues/{pull_number}/labels | |
| owner: ${{ github.repository_owner }} | |
| repo: ${{ github.event.repository.name }} | |
| pull_number: ${{ github.event.pull_request.number }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided token | |
| - name: Extract and Check Labels | |
| env: | |
| API_RESPONSE: ${{ steps.get_labels_api.outputs.data }} | |
| run: | | |
| REQUIRED_LABELS=( | |
| "chore" | |
| "documentation" | |
| "feature" | |
| "fix" | |
| "performance" | |
| "break" | |
| "wire-break" | |
| "skip-changelog" | |
| ) | |
| REQUIRED_LABELS_JSON=$(jq -n '$ARGS.positional' --args "${REQUIRED_LABELS[@]}") | |
| echo "Required Labels: $REQUIRED_LABELS_JSON" | |
| # Parse the response from the API call | |
| # The API returns an array of label objects, we need just the 'name' property | |
| echo "API Response: $API_RESPONSE" | |
| # Extract only the label names into a JSON array | |
| CURRENT_PR_LABELS_JSON=$(echo "$API_RESPONSE" | jq '[.[] | .name]') | |
| echo "Current PR Labels from API: $CURRENT_PR_LABELS_JSON" | |
| found_one=false | |
| for label in "${REQUIRED_LABELS[@]}"; do | |
| if echo "$CURRENT_PR_LABELS_JSON" | jq -e --arg label "$label" 'contains([$label])'; then | |
| echo "Found required label: $label" | |
| found_one=true | |
| break | |
| fi | |
| done | |
| if [ "$found_one" = false ]; then | |
| echo "::error file=.github/workflows/pr-labels.yml::Pull Request is missing a required changelog label. Please add one of: ${REQUIRED_LABELS[*]}." | |
| exit 1 | |
| else | |
| echo "Pull Request has a required changelog label." | |
| fi |