Skip to content

fix(ci): run prettier on Yarn bump diffs before commit - #132

Merged
nickboldt merged 1 commit into
mainfrom
chore/RHIDP-17563-yarn-bump-prettier
Oct 5, 2026
Merged

nickboldt merged 1 commit into
mainfrom
chore/RHIDP-17563-yarn-bump-prettier

Conversation

@nickboldt

Copy link
Copy Markdown
Member

Summary

  • Before yarn-bump.sh commits, run yarn prettier --ignore-unknown --write on the changed files when the repo defines prettier:check or prettier:fix.
  • Yarn writes "**" in .yarnrc.yml; Prettier (rhdh-cli) requires '**', which failed rhdh-cli #236.
  • The file list is built with a while read loop so shellcheck --severity=warning stays clean (skills CI already runs that check).

Test plan

  • bash -n skills/ci/rhdh-yarn-bump/scripts/yarn-bump.sh
  • shellcheck --severity=warning skills/ci/rhdh-yarn-bump/scripts/yarn-bump.sh
  • Next Yarn bump on a repo with prettier:check formats .yarnrc.yml before the PR opens

Ref: https://redhat.atlassian.net/browse/RHIDP-17563

Generated-by: cursor

Yarn writes double quotes in .yarnrc.yml; repos with prettier:check
reject that and fail CI. Format the changed files when the repo defines
a prettier script, using a shellcheck-clean file list.

https://redhat.atlassian.net/browse/RHIDP-17563

Generated-by: cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
@nickboldt
nickboldt merged commit e770c83 into main Oct 5, 2026
11 checks passed
@nickboldt
nickboldt deleted the chore/RHIDP-17563-yarn-bump-prettier branch October 5, 2026 21:15
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:20 PM UTC · Completed 9:33 PM UTC

Commit: 252cc6a · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.52

@fullsend-ai-review

Copy link
Copy Markdown

Review skipped — this PR is already merged.

The /fs-review command only reviews open PRs/MRs.

Posted by fullsend pre-review check

@fullsend-ai-review

Copy link
Copy Markdown

Review skipped — this PR is already merged.

The /fs-review command only reviews open PRs/MRs.

Posted by fullsend post-review check

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