Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

ci: check that last commit message is conformant #237

Merged
merged 3 commits into from
Jan 7, 2019

Conversation

mboersma
Copy link
Member

@mboersma mboersma commented Jan 4, 2019

Reason for Change:

Ensures that commits don't slip through which can't be found by git-chglog or similar release tools that expect conventional commits. Also adds our copyright header validation script to the same linting step.

Issue Fixed:

Requirements:

Notes:

@mboersma
Copy link
Member Author

mboersma commented Jan 4, 2019

This checks the most recent commit, which may not be the commit message used when we squash a PR. So maintainers still need to pay attention when merging.

I think this will be useful enforcement in most cases that will keep us from missing things in release notes. But there's a tendency not to follow all these rules when adding commits onto an existing PR, as in:

fix typo

add manifest i forgot in last commit

Those type of tacked-on commits will fail now. IDK if that's more annoying than helpful.

@mboersma mboersma force-pushed the enforce-commit-messages branch from 92c12df to 001eb12 Compare January 4, 2019 23:49
@codecov
Copy link

codecov bot commented Jan 5, 2019

Codecov Report

Merging #237 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #237   +/-   ##
=======================================
  Coverage   53.23%   53.23%           
=======================================
  Files          95       95           
  Lines       14240    14240           
=======================================
  Hits         7580     7580           
  Misses       5994     5994           
  Partials      666      666

@CecileRobertMichon
Copy link
Contributor

/hold

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

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

/lgtm

@acs-bot
Copy link

acs-bot commented Jan 7, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon, mboersma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [CecileRobertMichon,mboersma]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@CecileRobertMichon
Copy link
Contributor

/hold cancel

@acs-bot acs-bot merged commit 4240737 into Azure:master Jan 7, 2019
juhacket pushed a commit to juhacket/aks-engine that referenced this pull request Mar 14, 2019
* ci: check that last commit message is conformant

* fix: echo commit message in case of failure

* fix: add --no-merges flag so commit check works
@mboersma mboersma deleted the enforce-commit-messages branch June 21, 2019 19:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants