Change the type of prune_target_size field in model::GetBlockchainInfo from u32 to u64 #890
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 Labeler | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| label-pr: | |
| runs-on: ubuntu-slim | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Label PR based on changed files | |
| uses: actions/github-script@v6 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const changedFiles = await github.paginate( | |
| github.rest.pulls.listFiles, | |
| { | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: context.issue.number, | |
| } | |
| ); | |
| const filePathsToLabels = { | |
| 'node/': 'C-node', | |
| 'client/': 'C-client', | |
| 'integration_test/': 'C-integration-test', | |
| 'jsonrpc/': 'C-jsonrpc', | |
| 'types/': 'C-types', | |
| 'verify/': 'C-verify' | |
| }; | |
| const labelsToAdd = new Set(); | |
| changedFiles.forEach(file => { | |
| const filePath = file.filename; | |
| for (const [path, label] of Object.entries(filePathsToLabels)) { | |
| if (filePath.startsWith(path)) { | |
| labelsToAdd.add(label); | |
| break; | |
| } | |
| } | |
| }); | |
| if (labelsToAdd.size > 0) { | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| labels: Array.from(labelsToAdd) | |
| }); | |
| } |