From a0150474bea1199f4ff30048cfcfa3ccb4fafc07 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 17 Nov 2023 10:14:02 +0545 Subject: [PATCH] feat: check conventional commits in drone --- .drone.star | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.drone.star b/.drone.star index b3934291..ec4c97cc 100644 --- a/.drone.star +++ b/.drone.star @@ -220,7 +220,7 @@ def main(ctx): return before + coverageTests + afterCoverageTests + nonCoverageTests + stages + after def beforePipelines(ctx): - return validateDailyTarballBuild() + codestyle(ctx) + jscodestyle(ctx) + phpstan(ctx) + phan(ctx) + phplint(ctx) + checkStarlark() + return validateDailyTarballBuild() + codestyle(ctx) + jscodestyle(ctx) + phpstan(ctx) + phan(ctx) + phplint(ctx) + checkStarlark() + checkGitCommit() def coveragePipelines(ctx): # All unit test pipelines that have coverage or other test analysis reported @@ -2106,6 +2106,25 @@ def checkStarlark(): }, }] +def checkGitCommit(): + return [{ + "kind": "pipeline", + "type": "docker", + "name": "check-git-commit-messages", + "steps": [ + { + "name": "format-check-git-commit", + "image": "aevea/commitsar:latest", + }, + ], + "depends_on": [], + "trigger": { + "ref": [ + "refs/pull/**", + ], + }, + }] + def phplint(ctx): pipelines = []