Skip to content

Commit

Permalink
Merge pull request #2 from swisscom/feature/OCERED-7938-LIMA-Action-R…
Browse files Browse the repository at this point in the history
…unner-Ensure-that-ActionRunner-is-a-deployable-package
  • Loading branch information
SgiobairOg authored Oct 16, 2024
2 parents 53fbf1b + 4ddb25b commit 1b6da53
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check Commits with CommitLint

on:
- pull_request

jobs:
commitlint:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v3
- uses: wagoid/commitlint-github-action@v6
with:
configFile: configs/commitlint.config.mjs
8 changes: 7 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,11 @@
"useTabs": true,
"semi": true,
"printWidth": 150,
"requirePragma": false
"requirePragma": false,
"overrides": [
{
"files": "*.yml",
"options": { "tabWidth": 2 }
}
]
}
15 changes: 15 additions & 0 deletions configs/commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export default {
/*
* Resolve and load @commitlint/config-conventional from node_modules.
* Referenced packages must be installed
*/
extends: ['@commitlint/config-conventional'],

/*
* Any rules defined here will override rules from @commitlint/config-conventional
*/
rules: {
'scope-enum': [2, 'always', ['editor', 'meta', 'runner']],
'scope-empty': [0, 'never'],
},
};

0 comments on commit 1b6da53

Please sign in to comment.