8000 Feature: lint PR titles · Issue #11 · coder/aicommit · GitHub
[go: up one dir, main page]

Skip to content
Feature: lint PR titles #11
Open
@mtojek

Description

@mtojek

Problem Statement

Sometimes community users forget about adjusting the PR title (and merge commit) to the style guide of the Git repository. aicommit already uses the GPT model to adjust wording of particular commits, but not the PR title.

Proposal

Let's introduce aicommit lint command which can validate the proposed PR title. The command can be executed as Github Action and fail CI job if the PR does not meet style guide requirements.

Proposed Workflow

Command: aicommit lint --pr-title "fix: set dogfood go version to match go.mod"

  1. Load the style guide rules.
  2. Prepare the prompt: Ask to lint the PR title according to the style guide. Expected result: OK or suggestion.
  3. Exit status 0 or output the suggestion.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0