Project

General

Profile

Actions

action #95581

closed

coordination #39719: [saga][epic] Detection of "known failures" for stable tests, easy test results review and easy tracking of known issues

coordination #19720: [epic] Simplify investigation of job failures

ci: Use a git commit message style checker size:S

Added by tinita almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
2021-07-16
Due date:
% Done:

0%

Estimated time:

Description

We don't check commit messages, and even when looking at them in a Github PR, we might miss things.
For example when leaving out the blank line after the subject line, that's not visible in the Github UI.
But it is problematic when viewing the git log in a one-line mode (e.g. with --oneline, or with a tool like tig). Then the whole message is shown, not just the subject.

We could also check that the message starts with an uppercase letter, and optionally with something like t:, ci: etc.

Possible candidates:

The last one seems better.
My first try showed that it might not support everything that perl regexes support, e.g. \A did not work.

An alternative would be to implement it ourselves in a perl script, to be CI agnostic and to be able to call the check locally as well.

Acceptance Criteria

  • AC 1: Run in OpenQA
  • AC 2: A plan exists for the other repos

Related issues 2 (2 open0 closed)

Related to openQA Project - action #97454: Decide and implement predefined tags for the commit message checkerNew2021-08-24

Actions
Copied to openQA Project - action #99066: ci: Use a git commit message style checker in more reposNew

Actions
Actions

Also available in: Atom PDF