judgelint 0.2.3-aarch64-linux → 0.2.4-aarch64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +24 -8
  4. data/libexec/judgelint +0 -0
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78dea1676bc4e82ab8f9772535c10970f2566df61a67964f9601aeadbf571b58
4
- data.tar.gz: 257ebfdcf43aaaa32699b11a84da28463ccf02d0b20edf86c38b9b69cf07dd12
3
+ metadata.gz: b3131d99d1f188603fe73fe1da100e8dc074c80df46ffb6f26776defd05b9e1b
4
+ data.tar.gz: 3f916f29973d3c2ccd49f67c368850696bd4f7768e3dbf57a0b438f987119a9d
5
5
  SHA512:
6
- metadata.gz: 8f359c9eb0848f79d2b21bf516e40a6847466605d2d63c1ee3eadf16d9a0c882a20da200afa86e7340bd2423d5bfae7aae348a038fa64dc6036b93069a8e4553
7
- data.tar.gz: 6e84f719b36eed50520118773ecea951bb8cb6f723e0178e7e4f2fc3bf6513e649831b9748ec00744eaea9c8fddbef7879f293a7ff1280d0915a126de28ddf08
6
+ metadata.gz: 581196117ce9a15118409931adc414364e6512b818916ee0e230b5c348b28c02216adf1f465d19a4bb6298c40c2bed693ce2425f91c8c7ed5cf8362bf63641be
7
+ data.tar.gz: f4d8afc7cc5987be00956174b48839953dbe5b89c263adbcf12451401e178e34e63522374ff7cf6bc346f2108597a062e86997613038666e39956fa82f611fa2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.4 (2026-10-30)
4
+
5
+ - On GitHub Actions' default checkout, `--pr` compares GitHub's merge
6
+ commit with its first parent, fetching it if the checkout is one commit
7
+ deep. The checkout needs no history, and a stacked pull request is
8
+ checked for its own changes, not the whole stack's. It's used only when
9
+ the run is a `pull_request` event for a `refs/pull/<n>/merge` ref and
10
+ HEAD is that run's commit, so a merge the pull request committed isn't
11
+ taken for GitHub's.
12
+ - Otherwise, on GitHub Actions, `--pr` reads the branch a pull request
13
+ targets from its event before `GITHUB_BASE_REF`, which names the branch
14
+ a whole stack targets.
15
+
3
16
  ## 0.2.3 (2026-10-30)
4
17
 
5
18
  `--pr` uses the pull request's own specs and cache again, and hardening
data/README.md CHANGED
@@ -243,20 +243,21 @@ A new file is
243
243
  all changed lines. Rules about a whole file (`scope: file`) still read the
244
244
  whole file when any of it changed, and a directory rule asks about a
245
245
  directory when a file in it was changed, added or deleted. Only `check`
246
- takes `--base` and `--pr`. `--pr` gets the base branch from GitHub
247
- Actions, GitLab, Buildkite, Bitbucket, Azure Pipelines,
248
- `JUDGELINT_BASE_BRANCH`, or `gh`. Fetch enough history for git to find the
249
- merge base.
246
+ takes `--base` and `--pr`. `--pr` checks against `JUDGELINT_BASE_BRANCH`
247
+ when it's set, or else the base branch that GitHub Actions, GitLab,
248
+ Buildkite, Bitbucket, Azure Pipelines or `gh` names. git needs the history
249
+ back to the merge base, except on GitHub Actions' own checkout (below).
250
250
 
251
251
  Under `--base` or `--pr`, a changed file judgelint can't judge fails the
252
252
  run: one too large for the model, one the model refused to answer about,
253
253
  even in part, one that leads outside the project, or a binary one. Images,
254
254
  fonts, archives and other formats that are never code are left out instead.
255
255
 
256
- To keep answers between pushes, keep the cache in your CI's cache. On
257
- GitHub Actions:
256
+ On GitHub Actions, the default checkout is enough. Keep the cache between
257
+ pushes:
258
258
 
259
259
  ```yaml
260
+ - uses: actions/checkout@v4
260
261
  - uses: actions/cache@v4
261
262
  with:
262
263
  path: .judgelint/cache.bin
@@ -265,10 +266,25 @@ GitHub Actions:
265
266
  - run: judgelint --pr --format github
266
267
  ```
267
268
 
269
+ That checkout is the merge commit GitHub makes for the pull request, and
270
+ `--pr` compares it with its first parent: the base branch, or for a stacked
271
+ pull request, the merge commit of the one below it. So a stacked pull
272
+ request is checked for its own changes, with the config of what it lands
273
+ on. judgelint fetches that parent with the checkout's credentials, so leave
274
+ `persist-credentials` at its default. Line numbers are the merge commit's:
275
+ if the base branch changed lines above an edit, an annotation can sit a few
276
+ lines from where the "Files changed" tab shows it.
277
+
278
+ To check the pull request's own commit instead, check it out with
279
+ `ref: ${{ github.event.pull_request.head.sha }}` and fetch the history
280
+ with `fetch-depth: 0` (`filter: blob:none` skips old file contents). `--pr`
281
+ then compares with the branch the pull request targets, read from GitHub's
282
+ event, since `GITHUB_BASE_REF` names the branch a whole stack targets.
283
+
268
284
  ### Pull requests from people you don't trust
269
285
 
270
- `--pr` reads `.judgelint.yml` from the base branch, not from the pull
271
- request, so a pull request can't change where its code is sent or which
286
+ `--pr` reads `.judgelint.yml` from the base branch, or for a stacked pull
287
+ request from the one below it, not from the pull request, so a pull request can't change where its code is sent or which
272
288
  API key goes with it.
273
289
 
274
290
  The pull request's own specs and cache are used, so a new or changed
data/libexec/judgelint CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judgelint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - JP Camara