Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add git hooks #593

Merged
merged 3 commits into from
Jan 28, 2025
Merged

add git hooks #593

merged 3 commits into from
Jan 28, 2025

Conversation

dylanpinn
Copy link
Owner

  • Add git hooks to check commits using git-lint
    This uses git-lint (https://alchemists.io/projects/git-lint) to ensure
    that commit messages are correct.

    More work is needed in the next commit to tell git to use this directory
    for all git hooks.

  • Install git hooks directory with install-git target

  • chore: use script shebang for shellcheck unless profile config
    These don't have a shebang as aren't scripts that are executed so these
    are explicitly told by shellcheck to use shell=sh.

@dylanpinn dylanpinn self-assigned this Jan 28, 2025
This uses git-lint (https://alchemists.io/projects/git-lint) to ensure
that commit messages are correct.

More work is needed in the next commit to tell git to use this directory
for all git hooks.
These don't have a shebang as aren't scripts that are executed so these
are explicitly told by shellcheck to use shell=sh.
@dylanpinn dylanpinn marked this pull request as ready for review January 28, 2025 04:10
@dylanpinn dylanpinn enabled auto-merge (rebase) January 28, 2025 04:10
@dylanpinn dylanpinn merged commit 39babcd into main Jan 28, 2025
4 checks passed
@dylanpinn dylanpinn deleted the add-git-hooks branch January 28, 2025 04:11
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