Skip to content

Promote: jq_lacks exit-4 fix + App-install README#220

Merged
ptr727 merged 1 commit into
mainfrom
develop
Jun 29, 2026
Merged

Promote: jq_lacks exit-4 fix + App-install README#220
ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Promotes #219: jq_lacks now treats jq exit 4 (no output) as 'lacks' so configure.sh check passes on a correct main ruleset; repo-config README clarifies the App-install note (best-effort, not asserted). No library code change.

Consolidation of two fixes surfaced during the Utilities review that
also apply here:

- **jq_lacks exit-4 bug:** `jq -e` exits 4 (not 1) when a filter yields
no output, so the "main does not require linear history" assert
(jq_lacks on a correctly-absent rule -> exit 4) failed on a correct
ruleset. Treat exit 1 and 4 as "lacks"; propagate real jq errors
(2/3/5). Verified under `set -euo pipefail`.
- **App-install README wording:** `check_app` only *notes* (best-effort)
whether a GitHub App is installed; the README said the script "asserts"
it. Separate the assert (secret names) from the note.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 29, 2026 04:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR promotes a small repo-config maintenance fix: it corrects jq_lacks to treat jq -e exit code 4 (no output) as “lacks”, and clarifies documentation around the GitHub App installation check being best-effort rather than an assertion.

Changes:

  • Update jq_lacks to treat jq -e exit codes 1 and 4 as “lacks”, while still propagating real jq errors.
  • Clarify repo-config/README.md wording so the App-installation check is described as best-effort and non-failing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
repo-config/configure.sh Fixes jq_lacks semantics so ruleset checks don’t fail on correct “no match” conditions (jq exit 4).
repo-config/README.md Updates documentation to accurately describe the App-installation check as informational (non-asserting).

@ptr727 ptr727 merged commit 500a8ea into main Jun 29, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants