Skip to content

feat(tasks): English PR text + dedup pre-flight for suggestions/changelog#18

Open
havardljohansen wants to merge 1 commit into
mainfrom
feat/suggestions-changelog-english-and-dedup
Open

feat(tasks): English PR text + dedup pre-flight for suggestions/changelog#18
havardljohansen wants to merge 1 commit into
mainfrom
feat/suggestions-changelog-english-and-dedup

Conversation

@havardljohansen
Copy link
Copy Markdown
Contributor

Summary

Two task files (suggest-improvements.md, update-changelog.md) were the only ones missing both rules the rest of the suite already encodes:

  1. PR-internal text in English — 13 of 19 task files already say "PR review is always in English, regardless of the product's user language" (a11y, seo, perf, security, bug, dep-audit, etc.). These two didn't.
  2. Dedup pre-flight (gh pr list --search "night-shift/<slug> in:title" --state open → exit silently if one exists) — 7 of 9 PR-creating tasks have it. These two didn't.

Why this matters

Symptom that triggered the audit (2026-05-18): merkur-frontend (a nynorsk-mixed Sanity site) produced a PR titled night-shift/suggestions: opprett forbedringsforslag (nynorsk). Hard to triage if you don't read nynorsk.

Without the dedup pre-flight, an unmonitored repo accumulates one suggestions PR every night until someone triages — could be 7+ PRs per week. With the pre-flight (matching the other tasks' pattern), the second night's run exits silently and the existing PR sits until merged or closed.

Distinction preserved

PR-internal text (title, body, commit messages) → English.
Content written into repo docs (docs/SUGGESTIONS.md, CHANGELOG.md entries themselves) → project's configured Doc language:, because that's editor- or end-user-facing.

Changes

  • tasks/suggest-improvements.md — pre-flight + language sections added after "Read project config first"
  • tasks/update-changelog.md — same two additions
  • skills/night-shift/SKILL.md — bump NIGHT_SHIFT_VERSION 2026-05-19b → 2026-05-20a per AGENTS.md rule on framework-level changes

Test plan

  • Tomorrow morning's run on merkur-frontend produces an English-titled suggestions PR (or exits silently if one is already open)
  • update-changelog same

🤖 Generated with Claude Code

…elog

Two task files were the only ones missing both rules that the rest already
have. Symptoms observed in production:

- 2026-05-18: merkur-frontend produced PR titled
  `night-shift/suggestions: opprett forbedringsforslag` (nynorsk).
  PR-internal text should be English so anyone in the company can review.
- Unmonitored repos accumulate one suggestions / changelog PR per night
  with no dedup, where other tasks (a11y, seo, perf, security, bug, tests,
  translate-ui, dep-audit) already exit silently if an open PR exists.

Changes:
- tasks/suggest-improvements.md: add pre-flight gh-pr-list check + language
  section distinguishing PR-internal (English) from docs/SUGGESTIONS.md
  content (project's configured Doc language).
- tasks/update-changelog.md: same two additions.
- skills/night-shift/SKILL.md: bump NIGHT_SHIFT_VERSION 2026-05-19b → 2026-05-20a
  per AGENTS.md rule on framework-level changes.

Follow-up observations were captured in this user's local IMPROVEMENTS.md
2026-05-20 entry.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.

1 participant