potiuk opened a new pull request, #68633:
URL: https://github.com/apache/airflow/pull/68633

   Airflow does not use Conventional Commits, but `feat:` / `fix:` / `chore:`
   style subjects have crept into commits more and more often in recent months.
   
   This adds a guard at two levels:
   
   - A `commit-msg` prek hook (`check-no-conventional-commit-message`) that
     rejects Conventional Commits style subjects locally at commit time. It
     matches the 11 standard types with optional `(scope)` / `!`, and is
     deliberately *not* triggered by Airflow's prose prefixes such as `UI:`
     or `API:`.
   - A CI step in the shared `static-checks` job (covers both AMD and ARM)
     that checks every commit of a pull request via the GitHub API, so the
     rule is enforced even if a contributor hasn't installed the hook.
   
   `prek install` is updated (via `default_install_hook_types`) to also wire
   up the `commit-msg` hook — `pre-push` is intentionally left out of
   auto-install. AGENTS.md documents the rule and reminds contributors to run
   `prek install` before committing.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to