Skip to content

Mark AI disclosure checkbox as checked in auto-created Homebrew PR - #574

Merged
hannesa2 merged 1 commit into
masterfrom
copilot/mark-last-item-check-state
Aug 18, 2026
Merged

hannesa2 merged 1 commit into
masterfrom
copilot/mark-last-item-check-state

Conversation

Copilot AI commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

The Homebrew cask PR template includes a final checkbox requiring the submitter to confirm they did not use AI/LLM to create the PR. Since this PR is created by automation (not AI), that checkbox should be pre-checked — but it was being injected as unchecked - [ ].

Change

In the "Fetch Homebrew PR template" step, after fetching the template, use tac/sed to mark only the last - [ ] item (the AI disclosure) as - [x]:

TEMPLATE=$(echo "$TEMPLATE" | tac | sed '0,/- \[ \]/s/- \[ \]/- [x]/' | tac)

Reversing lines lets sed's 0,/pattern/ anchor match only the last occurrence in the original, avoiding false positives on the other checklist items.

@hannesa2

Copy link
Copy Markdown
Contributor

Screenshot differs: emulatorApi=arm64 with 4 screenshot(s)

setpoint (old) | diff | actual screenshot (new)

00-commit-context-menu.pngscreenshot

01-history-view.pngscreenshot

02-main-window.pngscreenshot

03-staging-view.pngscreenshot

@hannesa2
hannesa2 merged commit 1110690 into master Aug 18, 2026
2 checks passed
@hannesa2
hannesa2 deleted the copilot/mark-last-item-check-state branch August 18, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants