Skip to content

Commit

Permalink
feat: add commitsar step to drone (#41105)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 authored Nov 16, 2023
1 parent e38aa87 commit 27792a5
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def main(ctx):
return initial + before + coverageTests + afterCoverageTests + nonCoverageTests + stages + after

def initialPipelines(ctx):
return dependencies(ctx) + checkStarlark()
return dependencies(ctx) + checkStarlark() + checkGitCommit()

def beforePipelines(ctx):
return codestyle(ctx) + changelog(ctx) + phpstan(ctx) + phan(ctx)
Expand Down Expand Up @@ -3040,6 +3040,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 skipIfUnchanged(ctx, type):
if ("full-ci" in ctx.build.title.lower()):
return []
Expand Down

0 comments on commit 27792a5

Please sign in to comment.