Skip to content

Commit

Permalink
ci: add conform workflow and configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin Beckers <[email protected]>
  • Loading branch information
embik committed May 15, 2024
1 parent 97e6fc1 commit dcb4143
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .conform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
policies:
- type: commit
spec:
header:
length: 89
imperative: true
case: lower
invalidLastCharacters: .
dco: true
spellcheck:
locale: US
maximumOfOneCommit: true
conventional:
types:
# build system, releases
- "build"
# changes with no functional effect (e.g. updating dependencies)
- "chore"
# GitHub Actions
- "ci"
# Documentation
- "docs"
# Unit and integration tests
- "test"
scopes:
# everything related to cargo configuration and dependencies
- "cargo"
# all current subcommands in kbs
- "import"
- "label"
- "list"
- "move"
- "prune"
- "remove"
- "shell"
- "use"
- "version"
descriptionLength: 72
22 changes: 22 additions & 0 deletions .github/workflows/conform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Commit Conformance
on: [workflow_call]

jobs:
signoff:
runs-on: ubuntu-latest

if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup main branch without switching current branch
run: git fetch origin main:main

- name: Conform Action
uses: siderolabs/[email protected]
with:
args: "enforce --base-branch=main"

0 comments on commit dcb4143

Please sign in to comment.