Skip to content

Conversation

ADubhlaoich
Copy link
Member

@ADubhlaoich ADubhlaoich commented Jul 2, 2025

Proposed changes

This pull request moves our git conventions to their own discrete page, and adds information that was previously
not written down anywhere, such as our general branch management strategy.

Beyond documenting these conventions, an initial pre-commit configuration has been added, which can be used
as a guardrail to enforce some of the conventions, such as requirements around commit message length. A hook
provided by the pre-commit maintainers is also configured to prevent commits directly to the main branch.

These configurations may be adjusted in the future based on feedback, and there is additional follow-up work to
add a template for the git commit message. I had a working implementation but decided to scrap it in favour of
minimising the number of dependencies.

Checklist

Before merging a pull request, run through this checklist and mark each as complete.

  • I have read the contributing guidelines
  • I have signed the F5 Contributor License Agreement (CLA)
  • I have rebased my branch onto main
  • I have ensured my PR is targeting the main branch and pulling from my branch from my own fork
  • I have ensured that the commit messages adhere to Conventional Commits
  • I have ensured that documentation content adheres to the style guide
  • If the change involves potentially sensitive changes1, I have assessed the possible impact
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • I have ensured that existing tests pass after adding my changes
  • If applicable, I have updated README.md and CHANGELOG.md

Footnotes

  1. Potentially sensitive changes include anything involving code, personally identify information (PII), live URLs or significant amounts of new or revised documentation. Please refer to our style guide for guidance about placeholder content.

This commit updates the process documentation for how git is used, and
explains our use of conventional commits and message formatting. It also
includes an initial pre-commit configuration to enforce standards, which
will be used to invoke other linters.
@ADubhlaoich ADubhlaoich requested a review from a team as a code owner July 2, 2025 15:33
@github-actions github-actions bot added tooling Back end, repository, Hugo, and all things not related to content process documentation Documentation related to how the repository or documention itself is managed. labels Jul 2, 2025
Copy link

github-actions bot commented Jul 2, 2025

Deploy Preview will be available once build job completes!

Name Link
😎 Deploy Preview https://frontdoor-test-docs.nginx.com/previews/docs/775/

@JTorreG JTorreG self-requested a review July 2, 2025 15:56
@ADubhlaoich ADubhlaoich merged commit 4b57030 into main Jul 3, 2025
8 checks passed
@ADubhlaoich ADubhlaoich deleted the docs/git-conventions branch July 3, 2025 10:07
lamATnginx pushed a commit that referenced this pull request Jul 15, 2025
This commit moves our git conventions to their own
discrete page, and adds information that was previously
not written down anywhere, such as our general 
branch management strategy.

Beyond documenting these conventions, an initial pre-commit 
configuration has been added, which can be used as a guardrail 
to enforce some of the conventions, such as requirements 
around commit message length. A hook provided by the 
pre-commit maintainers is also configured to prevent 
commits directly to the main branch.

These configurations may be adjusted in the future based 
on feedback, and there is additional follow-up work to
add a template for the git commit message. I had a working 
implementation but decided to scrap it in favour of
minimising the number of dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

process documentation Documentation related to how the repository or documention itself is managed. tooling Back end, repository, Hugo, and all things not related to content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants