[oadp-1.6] Issue 46: Add pvcSizes to per-VM index file #24
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 Automation | |
| on: | |
| pull_request_target: | |
| types: [opened] | |
| jobs: | |
| label-and-assign: | |
| name: Label and Assign PR | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| steps: | |
| - name: Add label and assign author | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const prNumber = context.payload.pull_request.number; | |
| const author = context.payload.pull_request.user.login; | |
| // Add kubevirt-dm label | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: prNumber, | |
| labels: ['kubevirt-dm'] | |
| }); | |
| // Assign PR to author | |
| await github.rest.issues.addAssignees({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: prNumber, | |
| assignees: [author] | |
| }); | |
| console.log(`Added label 'kubevirt-dm' and assigned PR #${prNumber} to ${author}`); |