Skip to content

feat: implement AWS connection CRUD endpoints #75

feat: implement AWS connection CRUD endpoints

feat: implement AWS connection CRUD endpoints #75

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).`
);
}