Skip to content

docs: update contributing conventions document#155

Open
liamnwhite1 wants to merge 5 commits intomainfrom
docs/issue-154-contributing-conventions
Open

docs: update contributing conventions document#155
liamnwhite1 wants to merge 5 commits intomainfrom
docs/issue-154-contributing-conventions

Conversation

@liamnwhite1
Copy link
Collaborator

Summary

Add and integrate a new contributor-facing conventions document that standardizes commit headers, PR titles, and branch naming using Conventional Commits style. A single conventions document improves consistency in history, changelogs, and PR review quality. Following these conventions also enahnces agentic workflows by allowing agents to search the codebase and its history more efficiently.

Related Issues/Pull Requests

Summary of Changes

  • Added docs/contributing_conventions.md as the primary conventions guide.
  • Structured the document with clear sections for commit format, allowed types, scope rules, subject line rules, breaking changes, PR title format, branch naming, examples, and quick templates.
  • Updated scope guidance to reflect real repository domains (for example: workflow, metadata, database, additivefoam, openfoam, exaca, peregrine, etc.).
  • Added explicit guidance for multiple scopes:
    • <type>(<scope1>, <scope2>): <description>
  • Added practical valid/invalid examples aligned to this repository.
  • Updated CONTRIBUTING.md to link to docs/contributing_conventions.md.
  • Updated docs/.pages to include contributing_conventions.md in docs navigation.

Testing

  • Manually reviewed document structure and content for consistency with Conventional Commits rules.
  • Verified scope examples and multi-scope syntax in docs/contributing_conventions.md.
  • Verified docs navigation includes the new page via docs/.pages.
  • Verified CONTRIBUTING.md links to the new conventions doc.

Documentation

  • Added new documentation page: docs/contributing_conventions.md.
  • Updated contributor entry point documentation in CONTRIBUTING.md.
  • Updated docs navigation configuration in docs/.pages.

Reviewer Focus Areas

  • Accuracy of Conventional Commits guidance (types, scope formatting, breaking-change notation).
  • Scope list relevance to actual repo modules/packages.
  • Clarity and usability of examples for contributors.

Checklist

  • Linked issues/PRs are set (Closes/Related to/Depends on)
  • Tests added/updated or rationale provided
  • Documentation updated or marked not needed
  • Reviewer focus areas provided

@liamnwhite1 liamnwhite1 self-assigned this Mar 3, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a comprehensive set of contributing conventions to enhance consistency across the project's commit history, pull request titles, and branch names. By standardizing these elements, the aim is to improve code review quality, facilitate automated changelog generation, and support more efficient agentic workflows. The changes provide clear guidelines and examples for contributors to follow.

Highlights

  • New Conventions Document: Added docs/contributing_conventions.md to standardize commit headers, PR titles, and branch naming using Conventional Commits style.
  • Document Structure and Content: The new document is structured with clear sections covering commit format, allowed types, scope rules, subject line rules, breaking changes, PR title format, branch naming, examples, and quick templates.
  • Repository-Specific Scopes: Updated scope guidance to include relevant repository domains (e.g., workflow, metadata, database, openfoam).
  • Multi-Scope Guidance: Provided explicit guidance and examples for using multiple scopes in commit headers and PR titles.
  • Integration with Existing Docs: Updated CONTRIBUTING.md to link to the new conventions document and docs/.pages to include it in the documentation navigation.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • CONTRIBUTING.md
    • Added a link to the new contributing_conventions.md document for detailed naming standards.
  • docs/.pages
    • Included contributing_conventions.md in the documentation navigation structure.
  • docs/contributing_conventions.md
    • Created a new document outlining Conventional Commits style for commit headers and PR titles, and a work-type taxonomy for branch names.
    • Detailed commit header format, conventional types, scope rules (including repository-specific scopes and multi-scope format), and subject line rules.
    • Provided guidance on indicating breaking changes using '!' or a BREAKING CHANGE: footer.
    • Specified PR title format and rules, emphasizing alignment with commit message standards.
    • Defined branch naming conventions with required and recommended rules and examples.
    • Included 'Do and Do Not' examples and quick templates for various areas.
    • Stated the current 'guidance-first' enforcement status of these conventions.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request since its creation.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This is a great addition to the project's documentation. The new contributing_conventions.md is thorough, well-structured, and provides clear guidance on commit, PR, and branch naming conventions, which will definitely improve consistency. The updates to CONTRIBUTING.md and .pages correctly integrate the new document. I have one minor suggestion to improve the clarity regarding the allowed types for branch names to avoid potential confusion.

Copy link
Collaborator

@gknapp1 gknapp1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition. Just need to fix the broken CI for the docs deployment and a minor wording change.

@liamnwhite1 liamnwhite1 force-pushed the docs/issue-154-contributing-conventions branch 2 times, most recently from 6dff2e5 to 9e02886 Compare March 3, 2026 18:41
Copy link
Collaborator

@streeve streeve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you combine the two CONTRIBUTING and contributing_conventions files? They seem to endeavor to do the same thing.

I think we have one other top-level choice: 1) keep the level of detail you've added but understand it's aspirational (weakly enforced) 2) reduce the specificity and slowly add detail as we grow and/or get used to individual detail. For example, I don't know of any current emphasis on breaking changes that would warrant a contributing guideline

@liamnwhite1 liamnwhite1 force-pushed the docs/issue-154-contributing-conventions branch from 9e02886 to fc0eff0 Compare March 3, 2026 22:20
@liamnwhite1
Copy link
Collaborator Author

@streeve The lastest push combines the files. Regarding adherence to these conventions, I think it should be weakly enforced initially for human contributors but it helps a lot to strongly enforce these things for agents. That's why the wording of these guidelines generally comes across as strict. I think it would be beneficial for us to have another meeting for me to better explain the reasoning behind some of the design decisions I'm making. I can also give you both a rough demo of an agentic workflow using Codex.

- Valid: `fix(metadata): handle missing layer-thickness field`
- Invalid: `fix(metadata): Fixed missing layer-thickness field`

### Breaking Changes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change: we need a description of what we mean by breaking (Breaking changes are considered to be anything that changes interfaces at the user level or substantive change to application behavior for a given set of inputs.

```bash
pip install -e .[dev]
```

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarification: do we need to explicitly state that step 2 is really "make your desired changes"

- Valid: `fix(metadata): handle missing layer-thickness field`
- Invalid: `fix(metadata): Fixed missing layer-thickness field`

### Breaking Changes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change: we need some description of what we mean by breaking "breaking user examples, breaking developer interfaces, breaking default behavior, etc.)


### Description

- Use lowercase, hyphen-separated words.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: I prefer underscores

@streeve streeve changed the title docs: add contributing conventions document and update CONTRIBUTING.md docs: update contributing conventions document Mar 6, 2026
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.

docs: add docs/contributing_conventions.md for commit, PR title, and branch naming conventions

3 participants