GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Action size: Add a PR check that comments on significant repo size changes by henrymercer · Pull Request #3910 · github/codeql-action

Action size: Add a PR check that comments on significant repo size changes #3910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
henrymercer merged 11 commits into main from henrymercer/repo-size-diff-check
May 21, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

Action size: Add a PR check that comments on significant repo size changes #3910

Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit Hold shift + click to select a range
4fc0f3e
Add a PR check that comments on significant repo size changes
henrymercer May 18, 2026
6f8805e
Default setup env vars: Restrict results to `src`
henrymercer May 18, 2026
bcffb2b
Unify checks into a single job
henrymercer May 18, 2026
5a80681
Address review comments
henrymercer May 18, 2026
b5b50d6
Merge branch 'main' into henrymercer/repo-size-diff-check
henrymercer May 18, 2026
9b6438e
Tweak workflow
henrymercer May 18, 2026
15a712b
Address review comments
henrymercer May 18, 2026
2c8faa5
Pass comment body file directly
henrymercer May 18, 2026
a14f75e
Address review comments
henrymercer May 20, 2026
f3f52bf
Revert `getErrorMessage` import
henrymercer May 20, 2026
72ac23c
Update excluded required check list
henrymercer May 21, 2026
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

Some comments aren't visible on the classic Files Changed page.

There are no files selected for viewing

68 changes: 39 additions & 29 deletions 68 .github/workflows/pr-checks.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 45

concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: pr-checks-unit-tests-${{ github.ref }}-${{ github.event_name }}-${{ matrix.os }}-node${{ matrix['node-version'] }}

steps:
- name: Prepare git (Windows)
if: runner.os == 'Windows'
Expand Down Expand Up @@ -67,24 +71,28 @@ jobs:
sarif_file: eslint.sarif
category: eslint

# Verifying the PR checks are up-to-date requires Node 24. The PR checks are not dependent
# on the main codebase and therefore do not need to be run as part of the same matrix that
# we use for the `unit-tests` job.
verify-pr-checks:
name: Verify PR checks
# These checks do not need to be run as part of the same matrix that we use for the `unit-tests`
# job.
pr-checks:
name: PR Checks
Comment thread
mbg marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

if: github.triggering_actor != 'dependabot[bot]'
permissions:
contents: read
pull-requests: write
Comment thread
henrymercer marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

runs-on: ubuntu-slim
timeout-minutes: 10

steps:
- name: Prepare git (Windows)
if: runner.os == 'Windows'
run: git config --global core.autocrlf false
concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
group: pr-checks-pr-checks-${{ github.ref }}-${{ github.event_name }}

steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
# Need full history so we have both the PR merge commit (HEAD) and the base SHA locally
# for `git archive` to work against either.
fetch-depth: 0
Comment thread
henrymercer marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.


- name: Set up Node.js
uses: actions/setup-node@v6
Expand All @@ -96,29 +104,31 @@ jobs:
run: npm ci

- name: Verify PR checks up to date
if: always()
run: .github/workflows/script/verify-pr-checks.sh

- name: Run pr-checks tests
if: always()
Comment thread
mbg marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

working-directory: pr-checks
run: npx tsx --test

check-node-version:
if: github.triggering_actor != 'dependabot[bot]'
name: Check Action Node versions
runs-on: ubuntu-latest
timeout-minutes: 45
env:
BASE_REF: ${{ github.base_ref }}

permissions:
contents: read

steps:
- uses: actions/checkout@v6
- id: head-version
name: Verify all Actions use the same Node version
- name: Check repo size
# Forks and Dependabot PRs don't have permission to write comments, so skip the check in
# those cases.
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]'
Comment thread
mbg marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

working-directory: pr-checks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_REF: ${{ github.event.pull_request.base.ref }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_REPOSITORY: ${{ github.repository }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: npx tsx check-repo-size.ts

- name: Verify all Actions use the same Node version
id: head-version
run: |
NODE_VERSION=$(find . -name "action.yml" -exec yq -e '.runs.using' {} \; | grep node | sort | uniq)
Comment thread
henrymercer marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread
henrymercer marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

echo "NODE_VERSION: ${NODE_VERSION}"
Expand All @@ -128,12 +138,12 @@ jobs:
fi
echo "node_version=${NODE_VERSION}" >> $GITHUB_OUTPUT

- id: checkout-base
name: 'Backport: Check out base ref'
- name: 'Backport: Check out base ref'
id: checkout-base
if: ${{ startsWith(github.head_ref, 'backport-') }}
uses: actions/checkout@v6
with:
ref: ${{ env.BASE_REF }}
ref: ${{ github.base_ref }}

- name: 'Backport: Verify Node versions unchanged'
if: steps.checkout-base.outcome == 'success'
Expand Down
2 changes: 2 additions & 0 deletions 2 package-lock.json
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.