Repository navigation
docs: note that the README demos are real output from the example projects #1319
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: Pull Request Metadata | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened] | |
| workflow_dispatch: | |
| inputs: | |
| pr_number: | |
| description: Pull request number to validate | |
| required: true | |
| type: number | |
| 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}" |