feat(wallet): implement agent keypair generation and secure vault sto… #6
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 Checks | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| pull-requests: write | |
| issues: write | |
| contents: read | |
| jobs: | |
| pr-title-check: | |
| name: PR Title Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check PR title | |
| uses: amannn/action-semantic-pull-request@v5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| types: | | |
| feat | |
| fix | |
| docs | |
| style | |
| refactor | |
| perf | |
| test | |
| build | |
| ci | |
| chore | |
| revert | |
| requireScope: false | |
| pr-size-check: | |
| name: PR Size Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check PR size | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const pr = context.payload.pull_request; | |
| const additions = pr.additions; | |
| const deletions = pr.deletions; | |
| const changes = additions + deletions; | |
| let label = ''; | |
| if (changes < 100) label = 'size/XS'; | |
| else if (changes < 300) label = 'size/S'; | |
| else if (changes < 600) label = 'size/M'; | |
| else if (changes < 1000) label = 'size/L'; | |
| else label = 'size/XL'; | |
| try { | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: pr.number, | |
| labels: [label] | |
| }); | |
| } catch (error) { | |
| if (error.status === 403) { | |
| core.warning(`Unable to add PR size label "${label}" because this workflow token does not have label write permission.`); | |
| } else { | |
| throw error; | |
| } | |
| } | |
| if (changes > 1000) { | |
| core.warning('This PR is very large. Consider breaking it into smaller PRs.'); | |
| } | |
| conflict-check: | |
| name: Conflict Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check for merge conflicts | |
| uses: eps1lon/actions-label-merge-conflict@v3 | |
| with: | |
| dirtyLabel: 'merge-conflict' | |
| repoToken: ${{ secrets.GITHUB_TOKEN }} |