Skip to content

docs(rules): lint markdown at commit, not push - #170

Merged
williamrusdyputra merged 1 commit into
mainfrom
chore/hooks
Sep 24, 2026
Merged

williamrusdyputra merged 1 commit into
mainfrom
chore/hooks

Conversation

@angelicawill

Copy link
Copy Markdown
Contributor

resolves holdex/marketing#1155

Why

Checking at push time was annoying:

  • A fix meant a second commit and a second push.
  • You could be blocked on files you never touched.

Checking at commit time only looks at the files you staged, and fixes go into the same commit.

What changes

  • lefthook.yml runs the checks on commit.
  • scripts/hook-env.sh makes the hook work in GitHub Desktop and in folders with spaces in the name.
  • CI runs the same checks on every PR.
  • Rule DEV-380 now says "check on commit". DEV-338 and the README match.

Needs approval

DEV-380 is a rule change. @zolotokrylin, please confirm.

How to use

  • After merge, run npm install once.
  • To skip the check once: LEFTHOOK=0 git commit. CI still checks the PR.

Tested

  • Bad markdown: fixed in the same commit
  • Broken rule, or a deleted rule others need: commit blocked
  • GitHub Desktop, and no npm install: works, or skips with a note
  • CI: clean PR passes, bad PR fails

@angelicawill angelicawill self-assigned this Sep 24, 2026
@holdex

holdex Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Time Submission Status

Member # Time Running Total Status Last Update
angelicawill 5min ✅ Submitted Sep 24, 2026, 11:42 AM
williamrusdyputra 8min ✅ Submitted Sep 24, 2026, 12:20 PM

Submit or update total time with:

@holdex pr submit-time 2h

Add time on top of previous submission with:

@holdex pr add-time 1h30m

See available commands to help comply with our Guidelines.

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 73504730-7419-4f6d-9de7-86ecd528ad50


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@angelicawill
angelicawill marked this pull request as ready for review September 24, 2026 11:38
@angelicawill

Copy link
Copy Markdown
Contributor Author

@teodorus-nathaniel @williamrusdyputra ready for review, thanks!

@holdex pr add-time 5m

@williamrusdyputra

Copy link
Copy Markdown
Contributor

reviewing

@williamrusdyputra williamrusdyputra 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.

@holdex pr add-time 8m

@williamrusdyputra
williamrusdyputra merged commit c9b277e into main Sep 24, 2026
7 checks passed
@williamrusdyputra
williamrusdyputra deleted the chore/hooks branch September 24, 2026 12:20
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