Repository navigation
chore(main): release 0.132.1 #1429
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: Pull Request Metadata | |
| run-name: >- | |
| ${{ inputs.request_id && format('{0} [{1}]', github.workflow, inputs.request_id) | |
| || github.event.pull_request.title || github.event.head_commit.message || github.workflow }} | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened] | |
| workflow_dispatch: | |
| inputs: | |
| pr_number: | |
| description: Pull request number to validate | |
| required: true | |
| type: number | |
| request_id: | |
| description: "Release Please attempt that dispatched this run; leave empty for manual runs" | |
| required: false | |
| type: string | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| validate: | |
| name: Pull Request Metadata | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Resolve pull request metadata | |
| env: | |
| EVENT_NAME: ${{ github.event_name }} | |
| GH_TOKEN: ${{ github.token }} | |
| PR_NUMBER: ${{ inputs.pr_number }} | |
| run: | | |
| if [[ "${EVENT_NAME}" == "pull_request" ]]; then | |
| cp "${GITHUB_EVENT_PATH}" "${RUNNER_TEMP}/pull-request.json" | |
| else | |
| gh api "repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}" \ | |
| > "${RUNNER_TEMP}/pull-request.json" | |
| fi | |
| - name: Validate branch, title, and description | |
| env: | |
| PR_METADATA_PATH: ${{ runner.temp }}/pull-request.json | |
| run: python -m scripts.validate_pr_metadata --metadata-file "${PR_METADATA_PATH}" |