feat: implement AWS connection CRUD endpoints #75
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 Size Warning" | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| pull-requests: read | |
| contents: read | |
| jobs: | |
| pr-size: | |
| name: PR size warning | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check PR size | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const pr = context.payload.pull_request; | |
| const files = pr.changed_files || 0; | |
| const additions = pr.additions || 0; | |
| const deletions = pr.deletions || 0; | |
| const total = additions + deletions; | |
| // Initial warning thresholds only. | |
| // Chosen as a reasonable starting point to flag unusually large PRs | |
| // without blocking normal development work. | |
| const fileWarn = 30; | |
| const lineWarn = 500; | |
| if (files > fileWarn || total > lineWarn) { | |
| core.warning( | |
| `PR is large: ${files} files, ${additions} additions, ${deletions} deletions (${total} total). ` + | |
| `Consider splitting it into smaller PRs where possible.` | |
| ); | |
| } else { | |
| core.info( | |
| `PR size OK: ${files} files, ${additions} additions, ${deletions} deletions (${total} total).` | |
| ); | |
| } |